93[[nodiscard]]
inline DynList<T>
97 while (!future_list.is_empty())
98 ret.
append(future_list.remove_first().get());
118[[nodiscard]]
inline DynList<T>
141 while (!future_list.is_empty())
173[[nodiscard]]
inline bool
176 for (
auto it = future_list.get_it(); it.has_curr(); it.next())
177 if (it.get_curr().wait_for(std::chrono::seconds(0)) != std::future_status::ready)
193[[nodiscard]]
inline size_t
197 for (
auto it = future_list.get_it(); it.has_curr(); it.next())
198 if (it.get_curr().wait_for(std::chrono::seconds(0)) == std::future_status::ready)
Doubly-linked list (defined in tpl_dynList.H).
T & append(const T &item)
T remove_first()
See remove().
Main namespace for Aleph-w library functions.
size_t count_ready(DynList< std::future< T > > &future_list)
Count how many futures are ready.
DynList< T > get_futures(DynList< std::future< T > > &future_list)
Collect results from a list of futures.
bool all_ready(DynList< std::future< T > > &future_list)
Check if all futures in a list are ready.
Itor::difference_type count(const Itor &beg, const Itor &end, const T &value)
Count elements equal to a value.
Alias for htlist.H (DynList implementation).