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

Function dispatch

demo_example/asio/asio/impl/dispatch.hpp:224–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222template <typename Executor,
223 ASIO_COMPLETION_TOKEN_FOR(void()) CompletionToken>
224ASIO_INITFN_AUTO_RESULT_TYPE(CompletionToken, void()) dispatch(
225 const Executor& ex, ASIO_MOVE_ARG(CompletionToken) token,
226 typename constraint<
227 execution::is_executor<Executor>::value || is_executor<Executor>::value
228 >::type)
229{
230 return async_initiate<CompletionToken, void()>(
231 detail::initiate_dispatch_with_executor<Executor>(ex), token);
232}
233
234template <typename ExecutionContext,
235 ASIO_COMPLETION_TOKEN_FOR(void()) CompletionToken>

Callers 14

io_context.hppFile · 0.70
spawn.hppFile · 0.70
spawnFunction · 0.70
dispatch.hppFile · 0.70
asio_handler_invokeFunction · 0.70
~coroMethod · 0.50
cancelFunction · 0.50
dispatch_coroutineFunction · 0.50
operator()Method · 0.50
operator()Method · 0.50
operator()Method · 0.50

Calls 1

get_executorMethod · 0.45

Tested by

no test coverage detected