Takes one count from the semaphore, waiting for signal if there is none. The result says whether it got one.
- milliseconds: how long to wait at most. 0 only tries; -1 waits as long as it takes.
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
- s: *Semaphore
- milliseconds: s32
- how long to wait at most. 0 only tries; -1 waits as long as it takes.