Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
techleeksnap committed Jul 24, 2024
1 parent edada37 commit 1a4080d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion support-lib/cpp/SharedFuture.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class SharedFuture {
SharedFuture<std::remove_cv_t<std::remove_reference_t<std::invoke_result_t<Func, const SharedFuture<T>&>>>> then(
Func transform) const {
auto cpy = SharedFuture(*this); // retain copy during coroutine suspension
co_await waitIgnoringExceptions();
co_await cpy.waitIgnoringExceptions();
co_return transform(cpy);
}

Expand Down

0 comments on commit 1a4080d

Please sign in to comment.