Semaphore.await

Suspends the thread until the semaphore is signaled, or the timeout is reached.

class Semaphore
@nogc
bool
await
(
ulong timeout = 0
)

Parameters

timeout ulong

Timeout in miliseconds to block the calling thread before giving up.

Return Value

Type: bool

true if the semaphore was signaled in time, false otherwise.

Meta