Skip to content

An Lock object can be used to mediate access to an application's global data or to protect a critical section of code.

License

Notifications You must be signed in to change notification settings

GavinFu7/TypeScript_threads_lock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

TypeScript_threads_lock

An Lock object can be used to mediate access to an application's global data or to protect a critical section of code.

React Native

import Lock from '/utils/lock';

const lock = new Lock( { maxProcessing:1 } );

async function fn() {
  await lock.lock(key);

  .
  .
  .

  lock.unlock(key);
}

About

An Lock object can be used to mediate access to an application's global data or to protect a critical section of code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published