| 148 | BOOST_ASIO_COMPLETION_TOKEN_FOR(void()) NullaryToken |
| 149 | = default_completion_token_t<Executor>> |
| 150 | inline 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 | /** |
no test coverage detected