Skip to content

kozmoz/synchronized

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors