AsyncLockable Interface
Package: @esfx/async-lockable
Represents a value that can be used to synchronize access to a resource.
Declaration
export interface AsyncLockable
Methods
[AsyncLockable.lock](cancelable)
Takes a lock.
Declaration
[AsyncLockable.lock](cancelable?: Cancelable): Promise<LockHandle>;
Parameters
Returns
[AsyncLockable.unlock]()
Releases a lock.
Declaration
[AsyncLockable.unlock](): void;
Returns
void