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

Function async_multishot

test/exec/asio/test_completion_token.cpp:422–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420
421 template <typename CompletionToken>
422 decltype(auto) async_multishot(CompletionToken&& token)
423 {
424 using signature_type = void();
425 return asio_impl::async_initiate<CompletionToken, signature_type>(
426 [](auto&& h) { std::forward<decltype(h)>(h)(); },
427 token);
428 }
429
430 TEST_CASE("When appropriate the yielded sender is multi-shot", "[asioexec][completion_token]")
431 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected