C/C++ API 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: