Skip to content

mutex

A mutual-exclusion lock for async functions: a Semaphore with one permit.

Adapted from es-toolkit’s Mutex (MIT, see THIRD-PARTY-NOTICES.md).

Class Description
Mutex A mutual-exclusion lock for async functions: only one holder at a time, waiters served first in first out.