Semaphore.tryAwait

Checks if the semaphore is signalled then awaits on it if is.

class Semaphore
@nogc
bool
tryAwait
()

Return Value

Type: bool

true if the semaphore was signalled, false otherwise.

Meta