blob: e3e0caf2f88c01449aff4820a219bb548e453d85 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#pragma once
#include "wait.h"
namespace NThreading::NWait {
template <typename TFutures, typename TCallbackExecutor>
TFuture<void> WaitAllOrException(TFutures const& futures, TSubscriptionManagerPtr manager = TSubscriptionManager::Default()
, TCallbackExecutor&& executor = TCallbackExecutor());
template <typename T, typename TCallbackExecutor>
TFuture<void> WaitAllOrException(std::initializer_list<TFuture<T> const> futures
, TSubscriptionManagerPtr manager = TSubscriptionManager::Default()
, TCallbackExecutor&& executor = TCallbackExecutor());
template <typename T, typename TCallbackExecutor>
TFuture<void> WaitAllOrException(TFuture<T> const& future1, TFuture<T> const& future2
, TSubscriptionManagerPtr manager = TSubscriptionManager::Default()
, TCallbackExecutor&& executor = TCallbackExecutor());
}
#define INCLUDE_LIBRARY_THREADING_FUTURE_WAIT_ALL_OR_EXCEPTION_INL_H
#include "wait_all_or_exception_inl.h"
#undef INCLUDE_LIBRARY_THREADING_FUTURE_WAIT_ALL_OR_EXCEPTION_INL_H
|