hpx::wait_all_for_n_nothrow#
Defined in header hpx/future.hpp.
See Public API for a list of names and headers that are part of the public HPX API.
See also:
-
template<typename InputIter>
hpx::wait_all_for_nothrow_result hpx::wait_all_for_n_nothrow(hpx::chrono::steady_duration const &timeout, InputIter begin, std::size_t count)# The function wait_all_for_n_nothrow is an operator allowing to join on the result of all given futures, similar to wait_all_n. It differs from wait_all_for_n in that it will not rethrow any exceptions captured by the given futures while they became ready; instead it returns as soon as either all futures have become ready, or the given timeout has elapsed, whichever happens first.
Note
The function wait_all_for_n_nothrow returns after all futures have become ready, or after the given timeout has expired, whichever comes first. All input futures are still valid after wait_all_for_n_nothrow returns, independently of the returned status, and can be inspected (e.g. using is_ready()) to determine which of the given futures have become ready.
Note
Unlike wait_all_for_n, this function will not rethrow any exceptions captured by the futures while becoming ready. Any such exceptions are not rethrown by this call.
- Parameters:
timeout – The maximum duration to wait for all the given futures to become ready.
begin – The iterator pointing to the first element of a sequence of future or shared_future objects for which wait_all_for_n_nothrow should wait.
count – The number of elements in the sequence starting at first.
- Returns:
Returns a wait_all_for_nothrow_result object whose status member is hpx::future_status::ready if all the given futures have become ready before timeout has elapsed, and hpx::future_status::timeout otherwise; and whose has_exceptional_results member indicates whether any of the futures that became ready had captured an exception.