| 8 | #include <utility> |
| 9 | |
| 10 | int 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 | } |
nothing calls this directly
no test coverage detected