asio C++ library

PrevUpHomeNext

experimental::co_spawn (1 of 3 overloads)

Spawn a new thread of execution.

template<
    typename Executor,
    typename F,
    typename CompletionToken,
    typename  = typename enable_if<is_executor<Executor>::value>::type>
auto co_spawn(
    const Executor & ex,
    F && f,
    CompletionToken && token);

PrevUpHomeNext