diff options
author | somov <somov@yandex-team.ru> | 2022-02-10 16:45:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:49 +0300 |
commit | 7489e4682331202b9c7d863c0898eb83d7b12c2b (patch) | |
tree | 9142afc54d335ea52910662635b898e79e192e49 /library/cpp/threading | |
parent | a5950576e397b1909261050b8c7da16db58f10b1 (diff) | |
download | ydb-7489e4682331202b9c7d863c0898eb83d7b12c2b.tar.gz |
Restoring authorship annotation for <somov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/threading')
-rw-r--r-- | library/cpp/threading/future/async.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/threading/future/async.h b/library/cpp/threading/future/async.h index 0f3a741372..8543fdd5c6 100644 --- a/library/cpp/threading/future/async.h +++ b/library/cpp/threading/future/async.h @@ -20,10 +20,10 @@ namespace NThreading { template <typename Func> TFuture<TFutureType<TFunctionResult<Func>>> Async(Func&& func, IThreadPool& queue) { auto promise = NewPromise<TFutureType<TFunctionResult<Func>>>(); - auto lambda = [promise, func = std::forward<Func>(func)]() mutable { + auto lambda = [promise, func = std::forward<Func>(func)]() mutable { NImpl::SetValue(promise, func); - }; - queue.SafeAddFunc(std::move(lambda)); + }; + queue.SafeAddFunc(std::move(lambda)); return promise.GetFuture(); } |