asio C++ library

PrevUpHomeNext

experimental::awaitable_operators::operator|| (3 of 6 overloads)

Wait for one operation to succeed.

template<
    typename T,
    typename Executor>
awaitable< std::variant< T, std::monostate >, Executor > operator||(
    awaitable< T, Executor > t,
    awaitable< void, Executor > u);

If one operations succeeds, the other is cancelled as the OR-condition is already satisfied.


PrevUpHomeNext