[#absl-Notification-WaitForNotificationWithTimeout] = xref:absl.adoc[absl]::xref:absl/Notification.adoc[Notification]::WaitForNotificationWithTimeout :relfileprefix: ../../ :mrdocs: Blocks until the notification is notified or a timeout elapses. == Synopsis Declared in `<absl/synchronization/notification.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool WaitForNotificationWithTimeout(xref:absl/Duration.adoc[absl::Duration] timeout) const; ---- == Description 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. == Return Value The value of the "notified" state when the call returns. == Parameters [cols="1,4"] |=== | Name| Description | *timeout* | The maximum duration to wait for the notification. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#