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
ManualExecutor x;
size_t count = 0;
- auto fv = makeFuture().via(&x);
+ auto fv = via(&x);
fv.then([&](Try<void>&&) { count++; });
EXPECT_EQ(0, count);
TEST(Future, viaIsCold) {
ManualExecutor x;
- EXPECT_FALSE(makeFuture().via(&x).isActive());
+ EXPECT_FALSE(via(&x).isActive());
}
TEST(Future, viaRaces) {