MCPcopy Create free account
hub / github.com/NVIDIA/stdexec / async_throw_from_initiation

Function async_throw_from_initiation

test/exec/asio/test_completion_token.cpp:208–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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",

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected