Commit bd2552f1 authored by Hans Fugal's avatar Hans Fugal Committed by Dave Watson

s/makeFuture().via/via/

Summary:
codemod to replace all `makeFuture().via` with just `via`.

Test Plan: contbuild

Reviewed By: jsedgwick@fb.com

Subscribers: trunkagent, zeus-diffs@, targeting-diff-backend@, abirchall, fugalh, msk, exa, benj, njormrod, folly-diffs@

FB internal diff: D1715876

Signature: t1:1715876:1417712302:b882916d394f90caa23bd73fa68b8f786af649e3
parent f2ae6aa7
...@@ -844,7 +844,7 @@ TEST(Future, viaActsCold) { ...@@ -844,7 +844,7 @@ TEST(Future, viaActsCold) {
ManualExecutor x; ManualExecutor x;
size_t count = 0; size_t count = 0;
auto fv = makeFuture().via(&x); auto fv = via(&x);
fv.then([&](Try<void>&&) { count++; }); fv.then([&](Try<void>&&) { count++; });
EXPECT_EQ(0, count); EXPECT_EQ(0, count);
...@@ -857,7 +857,7 @@ TEST(Future, viaActsCold) { ...@@ -857,7 +857,7 @@ TEST(Future, viaActsCold) {
TEST(Future, viaIsCold) { TEST(Future, viaIsCold) {
ManualExecutor x; ManualExecutor x;
EXPECT_FALSE(makeFuture().via(&x).isActive()); EXPECT_FALSE(via(&x).isActive());
} }
TEST(Future, viaRaces) { TEST(Future, viaRaces) {
......
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