YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
wait.hpp File Reference
#include <yaclib/async/detail/wait_impl.hpp>
#include <yaclib/async/future.hpp>
#include <yaclib/config.hpp>
#include <yaclib/util/detail/default_event.hpp>
#include <cstddef>
Include dependency graph for wait.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  yaclib
 

Functions

template<typename Event = detail::DefaultEvent, typename... Waited>
YACLIB_INLINE std::enable_if_t<(... &&is_waitable_v< Waited >), voidyaclib::Wait (Waited &... fs) noexcept
 Wait until Ready becomes true.
 
template<typename Event = detail::DefaultEvent, typename It , typename Sentinel , typename = std::enable_if_t<is_input_range_pair_v<It, Sentinel> && is_waitable_v<typename std::iterator_traits<It>::reference>>>
YACLIB_INLINE void yaclib::Wait (It begin, Sentinel end) noexcept
 Wait until Ready becomes true.
 
template<typename Event = detail::DefaultEvent, typename Range , typename = std::enable_if_t<is_input_range_v<Range> && is_waitable_v<typename std::iterator_traits<detail::RangeIterator<Range>>::reference>>>
YACLIB_INLINE void yaclib::Wait (Range &&range) noexcept
 Wait until Ready becomes true.
 
template<typename Event = detail::DefaultEvent, typename It , typename = std::enable_if_t<is_input_iterator_v<It> && is_waitable_v<typename std::iterator_traits<It>::reference>>>
YACLIB_INLINE void yaclib::Wait (It begin, std::size_t count) noexcept
 Wait until Ready becomes true.