API reference@evolu/web › createLeaderLock

function createLeaderLock(): LeaderLock;

Defined in: Task.ts:25

Creates a LeaderLock backed by the Web Locks API.

Waiting for the browser lock is intentionally unabortable. If a caller starts waiting and its Run or fiber is later aborted, the underlying Web Locks request keeps waiting until the browser grants the lock. Only the returned lease releases it.