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

Function main

test_package/test.cpp:10–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include <utility>
9
10int main()
11{
12#ifdef STDEXEC_TEST_PARALLEL_SCHEDULER
13 auto x = stdexec::starts_on(stdexec::get_parallel_scheduler(), stdexec::just(42));
14#else
15 exec::static_thread_pool pool{1};
16 auto x = stdexec::starts_on(pool.get_scheduler(), stdexec::just(42));
17#endif
18 auto [a] = stdexec::sync_wait(std::move(x)).value();
19 return a == 42 ? EXIT_SUCCESS : EXIT_FAILURE;
20}

Callers

nothing calls this directly

Calls 3

get_parallel_schedulerFunction · 0.50
get_schedulerMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected