Suspends the calling thread until a notification occurs or until the supplied time period has elapsed.
The time to wait.
In: val must be non-negative.
true if notified before the timeout and false if not.
SyncError on error.
See Implementation
Suspends the calling thread until a notification occurs or until the supplied time period has elapsed.