Skip to content

livekit/ts-mutex

Repository files navigation

Installation

pnpm add @livekit/mutex

Usage

import { Mutex } from '@livekit/mutex';

const myLock = new Mutex();

const unlock = await myLock.lock();

try {
    ...
}
finally {
    unlock();
}

Releases

No releases published

Packages

No packages published