C/C++ API Reference
Loading...
Searching...
No Matches
pw::async2::Context Class Reference

Overview

Asynchronous context for functions running on a Dispatcher.

Context objects are provided when a task is run by a Dispatcher. The Context& is passed to Task::Pend, and can be passed to futures, other tasks, or other async operations. Context's primary purpose is to allow async code to store wakers.

Inheritance diagram for pw::async2::Context:
pw::async2::Task pw::async2::CallbackTask< FutureType, Func > pw::async2::CoroOrElseTask pw::async2::CoroTask< T, policy > pw::async2::CoroTask< T, ReturnValuePolicy::kDiscard > pw::async2::FallibleCoroTask< T, AllocationErrorHandler, policy > pw::async2::FallibleCoroTask< T, AllocationErrorHandler, ReturnValuePolicy::kDiscard > pw::async2::FuncTask< Func > pw::async2::FutureTask< T > pw::async2::RunOnceTask< Func, ReturnValuePolicy > pw::async2::RunOnceTask< Func, ReturnValuePolicy::kDiscard >

Public Member Functions

 Context (const Context &)=delete
 
 Context (Context &&)=delete
 
Contextoperator= (const Context &)=delete
 
Contextoperator= (Context &&)=delete
 
void ReEnqueue ()
 
PendingType Unschedule ()
 

Friends

class Task
 

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