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

Function async_throw

test/co_composed.cpp:35–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34template <typename CompletionToken>
35auto async_throw(CompletionToken&& token)
36{
37 return boost::asio::async_initiate<CompletionToken, void()>(
38 [](auto) { throw 42; }, token);
39}
40
41template <typename CompletionToken>
42auto throw_first(CompletionToken&& token)

Callers 2

throw_in_first_suspendFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected