Commit 91678d99 authored by Andrii Grynenko's avatar Andrii Grynenko Committed by Facebook Github Bot

Cleanup coroutine code to not use InlineExecutor

Reviewed By: yfeldblum, VitalyKalinkin

Differential Revision: D16568423

fbshipit-source-id: 533353ef623a4bd2629a3c1782b6228f598d6c01
parent eba20f4d
......@@ -142,8 +142,8 @@ retrying(size_t k, Policy&& p, FF&& ff) {
[k, p = std::forward<Policy>(p), ff = std::forward<FF>(ff)](
Executor::KeepAlive<> ka, auto&&) mutable {
auto futureP = [p = std::forward<Policy>(p), ka](
size_t k, exception_wrapper e) {
return p(k, std::move(e)).via(ka);
size_t kk, exception_wrapper e) {
return p(kk, std::move(e)).via(ka);
};
auto futureFF = [ff = std::forward<FF>(ff), ka = std::move(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