// the lock name & options objects are both optional constmutex = mortice('my-lock', {
// how long before write locks time out (default: 24 hours) timeout:30000,
// control how many read operations are executed concurrently (default: Infinity) concurrency:5,
// by default the the lock will be held on the main thread, set this to true if the // a lock should reside on each worker (default: false) singleProcess:false })
Usage
Browser
Because there's no global way to evesdrop on messages sent by Web Workers, please pass all created Web Workers to the
observable-webworkers
module: