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

Function test_awaitable_in_stdexec_task

test/exec/asio/test_use_sender.cpp:275–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273#if !STDEXEC_NO_STDCPP_COROUTINES()
274 template <typename Timer>
275 ::STDEXEC::task<void> test_awaitable_in_stdexec_task(Timer& timer)
276 {
277 co_await timer.async_wait(::asio_impl::as_tuple(exec::asio::use_sender));
278 }
279
280 TEST_CASE("Can await an Asio-based asynchronous operation which uses use_sender as its "
281 "completion token from a stdexec task",

Callers 1

Calls 1

async_waitMethod · 0.80

Tested by

no test coverage detected