Skip to content

Function: nodeLocks()

Documentation / @wtf/platform-node / locks / nodeLocks

function nodeLocks(): LockManager;

Defined in: packages/platform-node/src/locks.ts:16

The locks of node:worker_threads, held across the threads of the process, as the Web Locks API has them: each request Node’s own, its callback’s throw a rejection of the promise it gives, as the standard has it, since Node 24 keeps the lock of a callback that throws held for good.

Returns

LockManager