Skip to content

Commit

Permalink
Merge pull request #3392 from cloudflare/harris/tweak-deferred-proxy-…
Browse files Browse the repository at this point in the history
…await-transform

DeferredProxyCoroutine::await_transform() perfectly-forwards result
  • Loading branch information
harrishancock authored Jan 23, 2025
2 parents dee18e3 + dbacb42 commit f1d64f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/workerd/api/deferred-proxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class DeferredProxyCoroutine: public kj::_::PromiseNode,
}

template <typename U>
auto await_transform(U&& awaitable) {
decltype(auto) await_transform(U&& awaitable) {
// Trivially forward everything, so we can await anything a kj::Promise<T> can.
return inner.await_transform(kj::fwd<U>(awaitable));
}
Expand Down

0 comments on commit f1d64f8

Please sign in to comment.