An ESnext spec-compliant DisposableStack
, AsyncDisposableStack
, Symbol.dispose
, and Symbol.asyncDispose
shim/polyfill/replacement that works as far down as ES3.
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.
Polyfill for Symbol.dispose and Symbol.asyncDispose