Awaitable that resolves when ANY of the input Tasks completes (success or error).
More...
template<typename T>
class aria::async::WhenAnyAwaiter< T >
Awaitable that resolves when ANY of the input Tasks completes (success or error).
Returns the index (and result) of whichever finished first.
Race contract:
- Built on detail::RaceSlot — closes the await_suspend race window where a synchronously-completing task could resume the parent before await_suspend has stored the parent handle.
- Late tasks (losers) silently drop their results; their detached driver coroutines continue to run to completion in the background and eventually self-destruct.
- For cooperative cancellation of losers, see when_any_cancellable below — it accepts factories that take a CancellationToken.