Boost C++ Libraries 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 an old version of Boost. Click here to view this page for the latest version.

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

Wait for one operation to succeed.

    typename... T,
    typename U,
    typename Executor>
awaitable< std::variant< T..., U >, Executor > operator||(
    awaitable< std::variant< T...>, Executor > t,
    awaitable< U, Executor > u);

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