@livekit/mutex
v1.1.0
Published
Tiny mutex helper
Downloads
14,679
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();
}