Static methods

staticdestroy(this:Semaphore):Void

Cleans up a semaphore.

staticinit(value:Int):Result<Semaphore>

Allocates and initializes a read-write lock.

staticpost(this:Semaphore):Void

Increments a semaphore.

statictryWait(this:Semaphore):Result<NoData>

Tries to decrement a semaphore without blocking.

staticwait(this:Semaphore):Void

Decrements a semaphore.