MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / co_spawn

Function co_spawn

3rd/asio-1.24.0/include/asio/experimental/co_spawn.hpp:66–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64ASIO_INITFN_AUTO_RESULT_TYPE(
65 CompletionToken, void(std::exception_ptr, T))
66co_spawn(coro<void, T, Executor> c, CompletionToken&& token)
67{
68 auto exec = c.get_executor();
69 return async_compose<CompletionToken, void(std::exception_ptr, T)>(
70 detail::coro_spawn_op<void, T, Executor>{std::move(c)},
71 token, exec);
72}
73
74/// Spawn a resumable coroutine.
75/**

Callers 2

operator&&Function · 0.70
operator||Function · 0.70

Calls 1

get_executorMethod · 0.45

Tested by

no test coverage detected