New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@devlearning/mutex-fast-lock

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devlearning/mutex-fast-lock

Mutex fast lock localstorage

latest
npmnpm
Version
20.3.4
Version published
Maintainers
1
Created
Source

CnetMutexFastLock

Usage example

    mutexFastLockSvc.lock('sessionId').then(stats => {
        // a lock has now been acquired
        localStorage.setItem('sessionId', sessionId);
    
        {
            restartCount: 0, // the number of times the lock process restarted
            locksLost: 0, // the number of times the lock lost to another process
            contentionCount: 0, // the number of times contending for a lock
            acquireStart: 1473872633183, // timestamp when acquisition request started
            acquireEnd: 1473872633186, // timestamp when acquisition request fulfilled
            acquireDuration: 3, // the total time taken to acquire the lock (in ms)
        }

        // release the lock when you're done.
        mutex.release('sessionId');

    }).catch((err) => {
        // ...
    })

Keywords

Angular

FAQs

Package last updated on 13 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts