Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

experimental::co_spawn (1 of 6 overloads)

Spawn a resumable coroutine.

template<
    typename T,
    typename Executor,
    typename CompletionToken>
DEDUCED co_spawn(
    coro< void, T, Executor > c,
    CompletionToken && token);

This function spawns the coroutine for execution on its executor. It binds the lifetime of the coroutine to the executor.

Parameters

c

The coroutine

token

The completion token

Return Value

Implementation defined


PrevUpHomeNext