Thread module

wait_for

procedure · 1 overloadSource

Takes one count from the semaphore, waiting for signal if there is none. The result says whether it got one.

wait_for :: (s: *Semaphore, milliseconds: s32 = -1) -> Wait_For_Result

Takes one count from the semaphore, waiting for signal if there is none. The result says whether it got one.

Parameters

milliseconds: s32
how long to wait at most. 0 only tries; -1 waits as long as it takes.

Returns

See also