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

Spawn a resumable coroutine.

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

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

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

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

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

template<
    typename Executor,
    typename CompletionToken>
DEDUCED co_spawn(
    coro< void() noexcept, void, Executor > c,
    CompletionToken && token);
  » more...
Requirements

Header: boost/asio/experimental/co_spawn.hpp

Convenience header: None


PrevUpHomeNext