diff options
author | somov <[email protected]> | 2022-02-10 16:45:49 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:45:49 +0300 |
commit | 7489e4682331202b9c7d863c0898eb83d7b12c2b (patch) | |
tree | 9142afc54d335ea52910662635b898e79e192e49 /library/cpp/threading/future/async.h | |
parent | a5950576e397b1909261050b8c7da16db58f10b1 (diff) |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/threading/future/async.h')
-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 0f3a741372a..8543fdd5c68 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(); } |