diff options
author | bulatman <bulatman@yandex-team.ru> | 2022-02-10 16:45:50 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:50 +0300 |
commit | 2f6ca198245aeffd5e2d82b65927c2465b68b4f5 (patch) | |
tree | 9142afc54d335ea52910662635b898e79e192e49 /library/cpp/coroutine/engine/helper.h | |
parent | 6560e4993b14d193f8c879e33a3de5e5eba6e21d (diff) | |
download | ydb-2f6ca198245aeffd5e2d82b65927c2465b68b4f5.tar.gz |
Restoring authorship annotation for <bulatman@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/coroutine/engine/helper.h')
-rw-r--r-- | library/cpp/coroutine/engine/helper.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/library/cpp/coroutine/engine/helper.h b/library/cpp/coroutine/engine/helper.h index 0c3e978699..ec2711ba52 100644 --- a/library/cpp/coroutine/engine/helper.h +++ b/library/cpp/coroutine/engine/helper.h @@ -1,15 +1,15 @@ -#pragma once - -#include <util/generic/string.h> -#include <util/datetime/base.h> - -namespace NCoro { - - // @brief check that address `host`:`port` is connectable - bool TryConnect(const TString& host, ui16 port, TDuration timeout = TDuration::Seconds(1)); - - // @brief waits until address `host`:`port` became connectable, but not more than timeout - // @return true on success, false if timeout exceeded - bool WaitUntilConnectable(const TString& host, ui16 port, TDuration timeout); - -} +#pragma once + +#include <util/generic/string.h> +#include <util/datetime/base.h> + +namespace NCoro { + + // @brief check that address `host`:`port` is connectable + bool TryConnect(const TString& host, ui16 port, TDuration timeout = TDuration::Seconds(1)); + + // @brief waits until address `host`:`port` became connectable, but not more than timeout + // @return true on success, false if timeout exceeded + bool WaitUntilConnectable(const TString& host, ui16 port, TDuration timeout); + +} |