(Wangle) chain -> thenMulti + thenMultiWithExecutor
authorHannes Roth <hannesr@fb.com>
Thu, 14 May 2015 18:55:27 +0000 (11:55 -0700)
committerViswanath Sivakumar <viswanath@fb.com>
Wed, 20 May 2015 17:57:10 +0000 (10:57 -0700)
commit0593c2242fcbf86010f9399e5655186e9534e71a
treeb96380277ab174978a52c2e2ce2b85760e09a9f3
parentad0c254dbdbac5b166c1b4e9e3386ba487842630
(Wangle) chain -> thenMulti + thenMultiWithExecutor

Summary:
If we make `chain` a member function we can avoid the type issues and infer everything. I also added thenMulti for symmetry. Sadly the compiler doesn't like having a thenMulti with an optional `Executor*` as the first argument, it fails after some deductions. Hence `thenMultiWithExecutor`.

itssobeautiful

Test Plan: Run all the tests.

Reviewed By: hans@fb.com

Subscribers: trunkagent, folly-diffs@, jsedgwick, yfeldblum, chalfant

FB internal diff: D2021000

Signature: t1:2021000:1431557618:169447dc9d747b23a8a1ba830e78c43713d09a96
folly/futures/Future-inl.h
folly/futures/Future.h
folly/futures/helpers.h
folly/futures/test/ViaTest.cpp