Commit 62a3a550 authored by Dan Schatzberg's avatar Dan Schatzberg Committed by Facebook Github Bot

Revert D16568423: [easy][coro][2/?] Cleanup coroutine code to not use InlineExecutor

Differential Revision:
D16568423

Original commit changeset: 533353ef623a

fbshipit-source-id: fa2a719d34ee422a3e20a6e69f3c5edfb0f00257
parent fe4c11a9
...@@ -142,8 +142,8 @@ retrying(size_t k, Policy&& p, FF&& ff) { ...@@ -142,8 +142,8 @@ retrying(size_t k, Policy&& p, FF&& ff) {
[k, p = std::forward<Policy>(p), ff = std::forward<FF>(ff)]( [k, p = std::forward<Policy>(p), ff = std::forward<FF>(ff)](
Executor::KeepAlive<> ka, auto&&) mutable { Executor::KeepAlive<> ka, auto&&) mutable {
auto futureP = [p = std::forward<Policy>(p), ka]( auto futureP = [p = std::forward<Policy>(p), ka](
size_t kk, exception_wrapper e) { size_t k, exception_wrapper e) {
return p(kk, std::move(e)).via(ka); return p(k, std::move(e)).via(ka);
}; };
auto futureFF = [ff = std::forward<FF>(ff), ka = std::move(ka)]( auto futureFF = [ff = std::forward<FF>(ff), ka = std::move(ka)](
size_t v) { return ff(v).via(ka); }; size_t v) { return ff(v).via(ka); };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment