Installation pnpm add @livekit/mutex Usage import { Mutex } from '@livekit/mutex'; const myLock = new Mutex(); const unlock = await myLock.lock(); try { ... } finally { unlock(); }