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