Mutex.acquire method
Mutex › acquire
Takes the lock, waiting until it is free.Signature:
acquire(abortSignal?: AbortSignal | undefined): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
| abortSignal? | AbortSignal | undefined | Cancels the wait. An aborted acquire does not hold the lock, so it must not be released. |
Returns: Promise<void> — A Promise that resolves once the lock is held, or rejects with the signal's reason.