aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/threading/future/core/future.h
diff options
context:
space:
mode:
authorNikita Petrenko <npetrenko97@gmail.com>2022-02-10 16:50:57 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:57 +0300
commitaa72317474c8df5627f69271ae16f4237e5d3612 (patch)
treed7e630df3de42aabad50283b0f94db75d86ccaa1 /library/cpp/threading/future/core/future.h
parent5532ae5e5914329418d821bdad60854ab1f3222c (diff)
downloadydb-aa72317474c8df5627f69271ae16f4237e5d3612.tar.gz
Restoring authorship annotation for Nikita Petrenko <npetrenko97@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/threading/future/core/future.h')
-rw-r--r--library/cpp/threading/future/core/future.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/library/cpp/threading/future/core/future.h b/library/cpp/threading/future/core/future.h
index 2e82bb953e..96889d2b80 100644
--- a/library/cpp/threading/future/core/future.h
+++ b/library/cpp/threading/future/core/future.h
@@ -93,7 +93,7 @@ namespace NThreading {
T ExtractValue(TDuration timeout = TDuration::Zero());
T ExtractValueSync();
- void TryRethrow() const;
+ void TryRethrow() const;
bool HasException() const;
void Wait() const;
@@ -103,12 +103,12 @@ namespace NThreading {
template <typename F>
const TFuture<T>& Subscribe(F&& callback) const;
- // precondition: EnsureInitialized() passes
- // postcondition: std::terminate is highly unlikely
- template <typename F>
- const TFuture<T>& NoexceptSubscribe(F&& callback) const noexcept;
-
+ // precondition: EnsureInitialized() passes
+ // postcondition: std::terminate is highly unlikely
template <typename F>
+ const TFuture<T>& NoexceptSubscribe(F&& callback) const noexcept;
+
+ template <typename F>
TFuture<TFutureType<TFutureCallResult<F, T>>> Apply(F&& func) const;
TFuture<void> IgnoreResult() const;
@@ -148,7 +148,7 @@ namespace NThreading {
void GetValue(TDuration timeout = TDuration::Zero()) const;
void GetValueSync() const;
- void TryRethrow() const;
+ void TryRethrow() const;
bool HasException() const;
void Wait() const;
@@ -158,12 +158,12 @@ namespace NThreading {
template <typename F>
const TFuture<void>& Subscribe(F&& callback) const;
- // precondition: EnsureInitialized() passes
- // postcondition: std::terminate is highly unlikely
- template <typename F>
- const TFuture<void>& NoexceptSubscribe(F&& callback) const noexcept;
-
+ // precondition: EnsureInitialized() passes
+ // postcondition: std::terminate is highly unlikely
template <typename F>
+ const TFuture<void>& NoexceptSubscribe(F&& callback) const noexcept;
+
+ template <typename F>
TFuture<TFutureType<TFutureCallResult<F, void>>> Apply(F&& func) const;
template <typename R>
@@ -212,7 +212,7 @@ namespace NThreading {
bool TrySetValue(const T& value);
bool TrySetValue(T&& value);
- void TryRethrow() const;
+ void TryRethrow() const;
bool HasException() const;
void SetException(const TString& e);
void SetException(std::exception_ptr e);
@@ -252,7 +252,7 @@ namespace NThreading {
void SetValue();
bool TrySetValue();
- void TryRethrow() const;
+ void TryRethrow() const;
bool HasException() const;
void SetException(const TString& e);
void SetException(std::exception_ptr e);