Blocks until the notification is notified or a timeout elapses.

Synopsis

Declared in <absl/synchronization/notification.h>

bool
WaitForNotificationWithTimeout(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

Name

Description

timeout

The maximum duration to wait for the notification.

Created with MrDocs