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

Function nested

test/stdexec/types/test_task.cpp:258–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256 }
257
258 auto nested() -> ex::task<int>
259 {
260 auto sched = co_await ex::read_env(ex::get_scheduler);
261 static_assert(std::same_as<decltype(sched), ex::task_scheduler>);
262 co_await ex::schedule(sched);
263 co_return 42;
264 }
265
266 auto test_task_awaits_inline_sndr_without_stack_overflow() -> ex::task<int>
267 {

Calls 1

scheduleFunction · 0.50

Tested by

no test coverage detected