AcquiredLock type

What IMQLock.acquire() resolves to: the literal true when this caller acquired the lock and must perform the work, or the value the lock holder passed to IMQLock.release() when this caller had to wait.

Signature:

export type AcquiredLock<T> = T | boolean;

Remarks

Because the acquired case is the literal true, it cannot be told apart from a resolved value of true. Always use IMQLock.locked() immediately after awaiting to decide whether you are the holder — never inspect the returned value.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.