|
| | when_any (awaitable auto &&...others) noexcept |
| | Construct a when_any object from the given awaitables.
|
| |
| template<typename Rep , typename Period > |
| | when_any (std::chrono::duration< Rep, Period > timeout, awaitable auto &&...others) noexcept |
| | Construct a when_any object from the given awaitables.
|
| |
|
| when_any (when_any &&)=delete |
| |
|
| when_any (when_any const &)=delete |
| |
|
when_any & | operator= (when_any &&)=delete |
| |
|
when_any & | operator= (when_any const &)=delete |
| |
|
constexpr bool | await_ready () noexcept |
| |
|
void | await_suspend (std::coroutine_handle<> const &handle) noexcept |
| |
|
value_type | await_resume () noexcept |
| |
template<bool HasTimeout, typename... Ts>
class v1::when_any< HasTimeout, Ts >
An awaitable that waits for any of the given awaitables to complete.
template<bool HasTimeout, typename... Ts>
template<typename Rep , typename Period >
Construct a when_any object from the given awaitables.
The arguments may be of the following types:
- An object which can be directly used as an awaitable. Having the member functions:
await_ready(), await_suspend() and await_resume() and was_triggered().
- An object that has a
operator co_await() member function.
- An object that has a
operator co_await() free function.
- Parameters
-
| others | The awaitable to wait for. |