Pigweed
 
Loading...
Searching...
No Matches
pw::async2::Join< Pendables > Class Template Reference

#include <join.h>

Public Member Functions

 Join (Pendables &&... pendables)
 Creates a Join from a series of pendable values.
 
Poll< TupleOfOutputRvalues > Pend (Context &cx)
 

Detailed Description

template<typename... Pendables>
class pw::async2::Join< Pendables >

A pendable value which joins together several separate pendable values.

It will only return Ready once all of the individual pendables have returned Ready. The resulting Ready value contains a tuple of the results of joined pendable values.

Member Function Documentation

◆ Pend()

template<typename... Pendables>
Poll< TupleOfOutputRvalues > pw::async2::Join< Pendables >::Pend ( Context cx)
inline

Attempts to complete all of the pendables, returning Ready with their results if all are complete.


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