fast-mutex icon indicating copy to clipboard operation
fast-mutex copied to clipboard

FastMutex implementation using LocalStorage and promises

Results 6 fast-mutex issues
Sort by recently updated
recently updated
newest added

The current version of the debug dependency package is 2.2.x. ```javascript "dependencies": { "debug": "^2.2.0" } ``` It determines which environment code to load like this: ``` if (typeof process...

I'm trying to use this to build a web-locks polyfill. However, I'm seeing that two different browser tabs can acquire a lock at the same time. It appears they will...

As per discussion on #6

I noticed this code https://github.com/chieffancypants/fast-mutex/blob/master/dist/fast-mutex.js#L580-L703 is identical with this code https://github.com/thevtm/ms/blob/3d1e2b710314595596d5212639df419cfd860cb4/index.js Did you copy without complying with the license from that thevtm/ms? Or is there another source? In any case...

No functional changes have been made to the code. Very minor refactoring, to work better with Typescript, has been applied. Other than that, this version now supports ESM, tree-shaking (for...

Are you supposed to create a new instance of FastMutex every time you want to acquire a lock, or are you supposed to re-use the same instance every time you...