await

Awaits the latch for the given Duration.

Return

true if the count reached zero and false if the waiting time elapsed before the count reached zero.

Parameters

timeout

The maximum time to wait.