MCPcopy Create free account
hub / github.com/boostorg/asio / co_spawn_state

Method co_spawn_state

include/boost/asio/impl/co_spawn.hpp:81–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79{
80 template <typename H, typename F>
81 co_spawn_state(H&& h, const Executor& ex, F&& f)
82 : handler(std::forward<H>(h)),
83 spawn_work(ex),
84 handler_work(boost::asio::get_associated_executor(handler, ex)),
85 function(std::forward<F>(f))
86 {
87 }
88
89 Handler handler;
90 co_spawn_work_guard<Executor> spawn_work;

Callers

nothing calls this directly

Calls 1

get_associated_executorFunction · 0.85

Tested by

no test coverage detected