Search results

37 packages found

An ESnext spec-compliant `DisposableStack`, `AsyncDisposableStack`, `Symbol.dispose`, and `Symbol.asyncDispose` shim/polyfill/replacement that works as far down as ES3.

published version 1.1.7, 6 months ago14 dependents licensed under $MIT
75,579

This package provides two classes for managing locks: `Mutex` and `MutexRW`. These locks can be used to control access to critical sections in a multi-threaded or asynchronous environment.

published version 1.2.1, 4 months ago2 dependents licensed under $MIT
6,397

Rust-like Box and similar objects for TypeScript

published version 4.0.2, a day ago18 dependents licensed under $MIT
2,059

Polyfill for Symbol.dispose and Symbol.asyncDispose

published version 1.0.2, 2 years ago1 dependents licensed under $MIT
1,391

Dispose objects using the decorator pattern

published version 5.0.1, a year ago2 dependents licensed under $MIT
692

Generic interface for representing disposable resources or other cleanup.

published version 3.4.1, 5 years ago17 dependents licensed under $Parity-6.0.0
452

Run a function with an injected go-like defer helper

published version 1.0.0, 4 years ago1 dependents licensed under $MIT
232

Polyfill for Symbol.dispose and Symbol.asyncDispose

published version 1.0.1, a year ago2 dependents licensed under $ISC
283

A library providing utilities for implementing the Event pattern, facilitating event handling in JavaScript and TypeScript applications. This library is a collection of common utilities for managing events and event handlers using the Event pattern. The i

published version 1.3.1, 22 days ago2 dependents licensed under $MIT
147

Polyfill for DisposableStack and AsyncDisposableStack

published version 1.0.1, a year ago0 dependents licensed under $MIT
131

A disposable base class and minimal set of interfaces to properly implement an object disposal pattern.

published version 1.1.24, 2 years ago9 dependents licensed under $MIT
195

A tiny Angular lifecycle helper library

published version 0.1.12, 4 months ago0 dependents licensed under $MIT
70

Bracket monad for fp-ts

published version 0.3.0, a month ago1 dependents licensed under $MIT
98

Disposiq is a utility collection of Dispose pattern

published version 1.3.4, 2 months ago2 dependents licensed under $MIT
94

A flexible Object Pool that trims the pool down to the specified max size after a specified delay.

published version 1.0.9, 2 years ago4 dependents licensed under $MIT
45

A library for setting up and disposing services

published version 0.7.0, 7 years ago0 dependents licensed under $MIT
40

The collection of helpers written with mobx and typescript.

published version 0.8.3, 5 years ago1 dependents licensed under $MIT
52

React hook for automatic disposal on cancelled components

published version 0.5.0, 4 years ago0 dependents licensed under $MIT
23

TypeScript RAII proof of concept

published version 0.1.3, 6 years ago0 dependents licensed under $MIT
26

Clear all event listeners at once.

published version 1.1.1, 5 years ago0 dependents licensed under $MIT
19