Skip to content

kozmoz/synchronized

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 

synchronized guarantees that the order that a mutex was requested is the order that access will be given.

This simple function is inspired by Java's synchronized method.

synchronized(release => {

  // Locked now, execute code.
  // This can also be async code.  
  
  // Release the lock when the work is done.
  release();
});

Similar libraries

About

This mutex function inspired by Java's synchronized method

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published