| 206 | |
| 207 | template <typename CompletionToken> |
| 208 | decltype(auto) async_throw_from_initiation(CompletionToken&& token) |
| 209 | { |
| 210 | using signature_type = void(); |
| 211 | return asio_impl::async_initiate<CompletionToken, signature_type>( |
| 212 | [](auto const &) { throw std::logic_error("Test"); }, |
| 213 | token); |
| 214 | } |
| 215 | |
| 216 | TEST_CASE("When initiating the asynchronous operation throws this causes the " |
| 217 | "sender to send a std::exception_ptr", |
no outgoing calls
no test coverage detected