absl::Notification::WaitForNotification

Blocks the calling thread until the notification is notified.

Synopsis

Declared in <absl/synchronization/notification.h>

void
WaitForNotification() const;

Description

Blocks the calling thread until the notification's "notified" state is true. Note that if Notify() has been previously called on this notification, this function will immediately return.