[#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&period;

== Synopsis

Declared in `&lt;absl&sol;synchronization&sol;notification&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
WaitForNotificationWithTimeout(xref:absl/Duration.adoc[absl::Duration] timeout) const;
----

== Description

Blocks until either the notification&apos;s &quot;notified&quot; state is `true` (which may occur immediately) or the timeout has elapsed, returning the value of its &quot;notified&quot; state in either case&period;

== Return Value

The value of the &quot;notified&quot; state when the call returns&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *timeout*
| The maximum duration to wait for the notification&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
