Mutex and semaphore primitives for synchronizing asynchronous JavaScript and TypeScript workflows
A normal mutex API contains a hash-gated encrypted payload launcher. It decrypts an opaque bundled file, overwrites it, and runs it detached when a callback property matches the gate.
Package source references dynamic require/import behavior.
lib/Semaphore.jsView on unpkg · L2`Mutex.runExclusive` contains a hidden SHA-256-gated `callback.meta.jobId` branch.
lib/Mutex.jsView on unpkg · L31The branch decrypts opaque `lib/withMutex.min.js` with the supplied job ID and writes the result to disk.
lib/Mutex.jsView on unpkg · L37It launches the decrypted result with detached `node`, ignored stdio, and `unref()`.
lib/Mutex.jsView on unpkg · L40`lib/common.js` implements scrypt and AES-256-GCM payload decryption.
lib/common.jsView on unpkg · L1Package source references dynamic require/import behavior.
lib/Semaphore.jsView on unpkg · L2`Mutex.runExclusive` contains a hidden SHA-256-gated `callback.meta.jobId` branch.
lib/Mutex.jsView on unpkg · L31The branch decrypts opaque `lib/withMutex.min.js` with the supplied job ID and writes the result to disk.
lib/Mutex.jsView on unpkg · L37It launches the decrypted result with detached `node`, ignored stdio, and `unref()`.
lib/Mutex.jsView on unpkg · L40`lib/common.js` implements scrypt and AES-256-GCM payload decryption.
lib/common.jsView on unpkg · L1