Coroutine module

This module provides tools used by coroutines ts related programming.

Contents

Unlike other coroutine libraries, e.g. libunifex or cppcoro, this module is centered with some most basic and simple tools, like proposed by p1056, task<> and co_async.

Classes

template<class T>
class ark::task
task<> as defined in p1056, without exception support

Functions

template<typename T>
auto co_async(task<T> tsk) -> future<T> noexcept
start the task as another coroutine task series.

Function documentation

template<typename T>
future<T> co_async(task<T> tsk) noexcept

start the task as another coroutine task series.

the caller lost ownership of the task once it is started, so discarding the returned future does not abort the task from running.