Skip to main content
Pigweed's logo Pigweed
  1. Home
  2. Reference
  3. C/C++
  4. pw_async2
  5. Futures
  6. pw::async2::Notification Class Reference
Loading...
Searching...
No Matches
pw::async2::Notification Class Reference

Overview

A notification that multiple futures can wait on.

Public Member Functions

 Notification (Notification &&)=default
 
Notificationoperator= (Notification &&)=default
 
 Notification (const Notification &)=delete
 
Notificationoperator= (const Notification &)=delete
 
VoidFuture Wait ()
 
void Notify ()
 Wakes all waiting tasks.
 

Member Function Documentation

◆ Wait()

VoidFuture pw::async2::Notification::Wait ( )
inline

Returns a future that will resolve when Notify() is called.

Multiple futures can be obtained and will all resolve at once.


The documentation for this class was generated from the following file: