| 43 | } |
| 44 | |
| 45 | auto main() -> int |
| 46 | { |
| 47 | STDEXEC_TRY |
| 48 | { |
| 49 | // Awaitables are implicitly senders: |
| 50 | auto [i] = stdexec::sync_wait(async_answer2(just(42), just())).value(); |
| 51 | std::cout << "The answer is " << i.value() << '\n'; |
| 52 | } |
| 53 | STDEXEC_CATCH(std::exception & e) |
| 54 | { |
| 55 | std::cerr << "error: " << e.what() << '\n'; |
nothing calls this directly
no test coverage detected