Blocks until the notification is notified or a timeout elapses.
Declared in <absl/synchronization/notification.h>
bool
WaitForNotificationWithTimeout(absl::Duration timeout) const;
Blocks until either the notification's "notified" state is true (which may occur immediately) or the timeout has elapsed, returning the value of its "notified" state in either case.
The value of the "notified" state when the call returns.
| Name | Description |
|---|---|
| timeout | The maximum duration to wait for the notification. |