Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the develop branch, built from commit 3e299386d9.
PrevUpHomeNext

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

Wait for one operation to succeed.

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

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


PrevUpHomeNext