Logical collections of asynchronous work.
Learn more: Tasks
Namespaces | |
| namespace | pw |
| The Pigweed namespace. | |
Macros | |
| #define | PW_ASYNC_TASK_NAME(name) PW_LOG_TOKEN_EXPR("pw_async2", name) |
| Generates a token for use as a task name. | |
Enumerations | |
| enum class | pw::async2::ReturnValuePolicy : bool { kKeep , kDiscard } |
Whether to store or discard the function's return value in RunOnceTask. | |
Functions | |
| template<typename FutureType , typename Func > | |
| pw::async2::CallbackTask (Func &&, FutureType &&) -> CallbackTask< FutureType, Func > | |
| template<typename Func > | |
| pw::async2::FuncTask (Func &&) -> FuncTask< Func > | |
| template<typename Func > | |
| pw::async2::RunOnceTask (Func &&) -> RunOnceTask< Func > | |