template<auto kGetFutureImpl, auto kGetFutureCore>
class pw::async2::CustomFutureList< kGetFutureImpl, kGetFutureCore >
List of futures of a custom future type. This is a minimal extension to BaseFutureList.
- Template Parameters
-
| kGetFutureImpl | a function that converts a FutureCore& to its corresponding future type |
| kGetFutureCore | a function that converts a future reference to its corresponding FutureCore. |
|
|
void | Push (FutureCore &future) |
| |
|
void | Push (reference future) |
| |
|
void | PushRequireEmpty (FutureCore &future) |
| |
|
void | PushRequireEmpty (reference future) |
| |
|
bool | PushIfEmpty (FutureCore &future) |
| |
|
bool | PushIfEmpty (reference future) |
| |
|
pointer | PopIfAvailable () |
| |
|
reference | Pop () |
| |
|
template<typename Resolver > |
| void | ResolveAllWith (Resolver &&resolver) |
| |
|
template<typename Resolver > |
| void | ResolveOneWith (Resolver &&resolver) |
| |
|
bool | empty () const |
| |
|
void | Push (FutureCore &future) |
| |
|
void | PushRequireEmpty (FutureCore &future) |
| |
|
bool | PushIfEmpty (FutureCore &future) |
| |
|
FutureCore * | PopIfAvailable () |
| |
|
FutureCore & | Pop () |
| |
| void | ResolveOne () |
| |
|
void | ResolveOneIfAvailable () |
| |
|
void | ResolveAll () |
| | Pops all futures and calls WakeAndMarkReady() on them.
|
| |