Available on macro
Mutexes.
See also:
https://aantron.github.io/luv/luv/Luv/Mutex
staticdestroy(this:Mutex):Void
Cleans up a mutex.
staticinit(?recursive:Bool):Result<Mutex>
Allocates and initializes a mutex.
staticlock(this:Mutex):Void
Takes the mutex.
The calling thread is blocked until it obtains the mutex.
statictryLock(this:Mutex):Result<NoData>
Tries to take the mutex without blocking.
staticunlock(this:Mutex):Void
Releases the mutex.