@livekit/mutex
v1.1.1
Published
Tiny mutex helper
Downloads
133,771
Maintainers
Keywords
Readme
Installation
pnpm add @livekit/mutex
Usage
import { Mutex } from '@livekit/mutex';
const myLock = new Mutex();
const unlock = await myLock.lock();
try {
...
}
finally {
unlock();
}