Sane C++ Libraries
C++ Platform Abstraction Libraries
Loading...
Searching...
No Matches
SC::AwaitTaskGroup Struct Reference

Caller-storage structured group of child tasks owned by the current scope. More...

#include <Await.h>

Public Member Functions

 AwaitTaskGroup (AwaitEventLoop &await, Span< AwaitTask * > taskStorage, AwaitTaskGroupCancelPolicy cancelPolicy=AwaitTaskGroupCancelPolicy::CancelChildren)
 
Result spawn (AwaitTask &task)
 
AwaitTaskGroupWaitAllAwaiter waitAll ()
 
AwaitTaskGroupWaitAnyAwaiter waitAny (AwaitTaskGroupWaitAnyResult &outResult, AwaitTaskGroupWaitAnyPolicy waitAnyPolicy=AwaitTaskGroupWaitAnyPolicy::CancelRemaining)
 
Result collectResults (Span< Result > outResults, AwaitTaskGroupResultSummary *outSummary=nullptr) const
 
size_t size () const
 
size_t capacity () const
 

Friends

struct AwaitTaskGroupWaitAllAwaiter
 
struct AwaitTaskGroupWaitAnyAwaiter
 

Detailed Description

Caller-storage structured group of child tasks owned by the current scope.


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