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

Function dispatch

include/boost/asio/dispatch.hpp:150–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148 BOOST_ASIO_COMPLETION_TOKEN_FOR(void()) NullaryToken
149 = default_completion_token_t<Executor>>
150inline auto dispatch(const Executor& ex,
151 NullaryToken&& token = default_completion_token_t<Executor>(),
152 constraint_t<
153 execution::is_executor<Executor>::value || is_executor<Executor>::value
154 > = 0)
155 -> decltype(
156 async_initiate<NullaryToken, void()>(
157 declval<detail::initiate_dispatch_with_executor<Executor>>(),
158 token, detail::empty_work_function()))
159{
160 return async_initiate<NullaryToken, void()>(
161 detail::initiate_dispatch_with_executor<Executor>(ex),
162 token, detail::empty_work_function());
163}
164
165/// Submits a completion token or function object for execution.
166/**

Callers 1

dispatch.hppFile · 0.70

Calls 2

empty_work_functionClass · 0.85
get_executorMethod · 0.45

Tested by

no test coverage detected