Provides engine::WaitAny, engine::WaitAnyFor, engine::WaitAnyUntil and engine::MakeWaitAny.
Definition in file wait_any.hpp.
Go to the source code of this file.
#include <chrono>#include <cstdint>#include <optional>#include <vector>#include <boost/smart_ptr/intrusive_ptr.hpp>#include <userver/engine/deadline.hpp>#include <userver/utils/fast_pimpl.hpp>#include <userver/utils/meta.hpp>#include <userver/utils/span.hpp>
This graph shows which files directly or indirectly include this file:Classes | |
| class | engine::WaitAnyContext |
| Stores a set of awaitables and allows waiting for completion of any of the stored awaitables. More... | |
Namespaces | |
| namespace | engine |
| Asynchronous engine primitives. | |
Functions | |
| template<typename... Tasks> | |
| std::optional< std::size_t > | engine::WaitAny (Tasks &... tasks) |
| Waits for the completion of any of the specified tasks or the cancellation of the caller. | |
| template<typename... Tasks, typename Rep, typename Period> | |
| std::optional< std::size_t > | engine::WaitAnyFor (const std::chrono::duration< Rep, Period > &duration, Tasks &... tasks) |
| template<typename... Tasks, typename Clock, typename Duration> | |
| std::optional< std::size_t > | engine::WaitAnyUntil (const std::chrono::time_point< Clock, Duration > &until, Tasks &... tasks) |
| template<typename... Tasks> | |
| std::optional< std::size_t > | engine::WaitAnyUntil (Deadline, Tasks &... tasks) |
| template<typename... Awaitables> | |
| WaitAnyContext | engine::MakeWaitAny (Awaitables &... awaitables) |
| Produces a WaitAnyContext for the given awaitables and sequences of awaitables. | |