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 | c0a1bd5a47467ef8bf618172a331c90a2e70d71f (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/threading/future/core/future.h | |
parent | 7bd28c29ae2a1fba7a03bcf4c658af66fe1373bf (diff) | |
download | ydb-c0a1bd5a47467ef8bf618172a331c90a2e70d71f.tar.gz |
Restoring authorship annotation for <lexeyo@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/threading/future/core/future.h')
-rw-r--r-- | library/cpp/threading/future/core/future.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/library/cpp/threading/future/core/future.h b/library/cpp/threading/future/core/future.h index 93b5188c99..2e82bb953e 100644 --- a/library/cpp/threading/future/core/future.h +++ b/library/cpp/threading/future/core/future.h @@ -4,7 +4,7 @@ #include <util/datetime/base.h> #include <util/generic/function.h> -#include <util/generic/maybe.h> +#include <util/generic/maybe.h> #include <util/generic/ptr.h> #include <util/generic/vector.h> #include <util/generic/yexception.h> @@ -61,9 +61,9 @@ namespace NThreading { template <typename F, typename T> using TFutureCallResult = typename NImpl::TFutureCallResult<F, T>::TType; - //! Type of the future/promise state identifier - class TFutureStateId; - + //! Type of the future/promise state identifier + class TFutureStateId; + //////////////////////////////////////////////////////////////////////////////// template <typename T> @@ -113,11 +113,11 @@ namespace NThreading { TFuture<void> IgnoreResult() const; - //! If the future is initialized returns the future state identifier. Otherwise returns an empty optional - /** The state identifier is guaranteed to be unique during the future state lifetime and could be reused after its death - **/ - TMaybe<TFutureStateId> StateId() const noexcept; - + //! If the future is initialized returns the future state identifier. Otherwise returns an empty optional + /** The state identifier is guaranteed to be unique during the future state lifetime and could be reused after its death + **/ + TMaybe<TFutureStateId> StateId() const noexcept; + void EnsureInitialized() const; }; @@ -172,12 +172,12 @@ namespace NThreading { TFuture<void> IgnoreResult() const { return *this; } - - //! If the future is initialized returns the future state identifier. Otherwise returns an empty optional - /** The state identifier is guaranteed to be unique during the future state lifetime and could be reused after its death - **/ - TMaybe<TFutureStateId> StateId() const noexcept; - + + //! If the future is initialized returns the future state identifier. Otherwise returns an empty optional + /** The state identifier is guaranteed to be unique during the future state lifetime and could be reused after its death + **/ + TMaybe<TFutureStateId> StateId() const noexcept; + void EnsureInitialized() const; }; |