MCPcopy Create free account
hub / github.com/alibaba/async_simple / spawn

Function spawn

demo_example/asio/asio/impl/spawn.hpp:412–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410
411template <typename Function>
412inline void spawn(ASIO_MOVE_ARG(Function) function,
413 const boost::coroutines::attributes& attributes)
414{
415 typedef typename decay<Function>::type function_type;
416
417 typename associated_executor<function_type>::type ex(
418 (get_associated_executor)(function));
419
420 asio::spawn(ex, ASIO_MOVE_CAST(Function)(function), attributes);
421}
422
423template <typename Handler, typename Function>
424void spawn(ASIO_MOVE_ARG(Handler) handler,

Callers

nothing calls this directly

Calls 4

bind_executorFunction · 0.85
dispatchFunction · 0.70
resetMethod · 0.45
get_executorMethod · 0.45

Tested by

no test coverage detected