18 packages found
Symbol.dispose / Symbol.asyncDispose ponyfill
Dispose objects using the decorator pattern
Create a disposer function that uses a reference and cleans it up afterward.
A disposable base class and minimal set of interfaces to properly implement an object disposal pattern.
A memoization function with cache equals to one and a disposing function
A flexible Object Pool that trims the pool down to the specified max size after a specified delay.
Dispose a resource when p-using resolves.
Run a function with an injected go-like defer helper
React hook for automatic disposal on cancelled components
Using implementation for disposable resources.
A library for setting up and disposing services
The collection of helpers written with mobx and typescript.
TypeScript RAII proof of concept
Clear all event listeners at once.
Dispose bag for RxJS subscriptions. Inspired by RxSwift.
Generic interface for representing disposable resources or other cleanup.
Time based object, is built to auto discard stale / unused keys in your object. If you have an object you are managing with a timer in order to dispose of orphan items, this package is for you.
Decorates type methods in order to make disposable assertion