0.0.3 • Published 8 months ago

@tscommon/mutex v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Mutex - API

codecov

A mutual exclusion primitive useful for protecting shared data.

This mutex will block async contexts waiting for the lock to become available. The mutex can be created via a new constructor. Each mutex has a type parameter which represents the data that it is protecting. The data can only be accessed through the RAII guards returned from lock and tryLock, which guarantees that the data is only ever accessed when the mutex is locked.

0.0.3

8 months ago

0.0.2

9 months ago

0.0.1

10 months ago