UNPKG

nanolith

Version:

Multi-threading in no time with seamless TypeScript support.

6 lines (5 loc) 262 B
export type Mutex = Int32Array; export declare const createMutex: () => Mutex; export declare const lockMutexSync: (mutex: Mutex) => void; export declare const lockMutex: (mutex: Mutex) => Promise<void>; export declare const unlockMutex: (mutex: Mutex) => void;