diff options
author | lexeyo <lexeyo@yandex-team.ru> | 2022-02-10 16:50:52 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:52 +0300 |
commit | 7bd28c29ae2a1fba7a03bcf4c658af66fe1373bf (patch) | |
tree | 125a82183c08c617e85c03a2036a11878fe21fce /library/cpp/threading/future/subscription/wait_all_or_exception.h | |
parent | 00b32f5b0810b417c619169d137c29a64b54d464 (diff) | |
download | ydb-7bd28c29ae2a1fba7a03bcf4c658af66fe1373bf.tar.gz |
Restoring authorship annotation for <lexeyo@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/threading/future/subscription/wait_all_or_exception.h')
-rw-r--r-- | library/cpp/threading/future/subscription/wait_all_or_exception.h | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/library/cpp/threading/future/subscription/wait_all_or_exception.h b/library/cpp/threading/future/subscription/wait_all_or_exception.h index e3e0caf2f8..5c97e16449 100644 --- a/library/cpp/threading/future/subscription/wait_all_or_exception.h +++ b/library/cpp/threading/future/subscription/wait_all_or_exception.h @@ -1,25 +1,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 +#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 |