UNPKG

typed-utilities

Version:
8 lines (7 loc) 179 B
export declare class AsyncLock { private queue; private _length; constructor(); readonly use: <T>(fn: () => Promise<T>) => Promise<T>; get length(): number; }