Skip to content

Allow to add waiters to the front of the queue

Choose a tag to compare

@rogierschouten rogierschouten released this 17 Oct 06:28
· 87 commits to master since this release

New option skipQueue:

lock.acquire(key, fn1, cb); // runs immediately
lock.acquire(key, fn2, cb); // added to queue
lock.acquire(key, priorityFn, cb, {skipQueue: true}); // jumps queue and runs before fn2