|
wwa-coro 0.0.1
Yet Another C++20 Coroutine Library
|
Eager coroutine. More...
#include <coroutine>#include <exception>#include <functional>Go to the source code of this file.
Classes | |
| class | wwa::coro::eager_task |
| Eager coroutine. More... | |
| struct | wwa::coro::eager_task::promise_type |
| The promise type for the eager_task coroutine. More... | |
Namespaces | |
| namespace | wwa |
| namespace | wwa::coro |
| Library namespace. | |
Functions | |
| template<typename Awaitable, typename... Args> | |
| eager_task | wwa::coro::run_awaitable (Awaitable &&f, Args &&... args) |
| Turns any awaitable into an eager fire-and-forget coroutine. | |
Eager coroutine.
This header file defines the eager_task class, which represents an eager coroutine that starts execution immediately upon creation. It also includes the run_awaitable function template, which turns any awaitable into an eager fire-and-forget coroutine.
Definition in file eager_task.h.