| 24 | |
| 25 | template <sender S1, sender S2> |
| 26 | auto async_answer(S1 s1, S2 s2) -> stdexec::task<int> |
| 27 | { |
| 28 | // Senders are implicitly awaitable (in this coroutine type): |
| 29 | co_await static_cast<S2&&>(s2); |
| 30 | co_return co_await static_cast<S1&&>(s1); |
| 31 | } |
| 32 | |
| 33 | template <sender S1, sender S2> |
| 34 | auto async_answer2(S1 s1, S2 s2) -> stdexec::task<std::optional<int>> |