asio C++ library

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: asio/experimental/co_spawn.hpp

Convenience header: None


PrevUpHomeNext