futures::chain
authorHans Fugal <fugalh@fb.com>
Tue, 10 Feb 2015 20:24:07 +0000 (12:24 -0800)
committerSara Golemon <sgolemon@fb.com>
Wed, 11 Feb 2015 02:02:00 +0000 (18:02 -0800)
commite1c576b407c95030c8d1a063bebd27dd6dc89980
tree99b9cc0dfdb2fb09f8d3bcf08da371652f95a7e1
parent9f502239a326050b68dc2fbd92bde579289b89fd
futures::chain

Summary:
`futures::chain<A,Z>(a, b, c, d, e, f, ..., z)` where `a` is a callback suitable for `Future<A>::then` and `z` is a callback suitable for `Future<Y>::then<Z>`.

This will be important, at least in the background, for the new `via`. It will probably also be useful to some user sometime.

I imagine this will be tweaked over time if people find magic ways to get it to deduce the types better. But this works and it's not *too* much trouble to specify A and Z.

Test Plan: unit

Reviewed By: davejwatson@fb.com

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

FB internal diff: D1831073

Tasks: 6048744

Signature: t1:1831073:1423259292:711be0e047a2acb706fd74e529d5d5fb6abda566
folly/futures/Future-inl.h
folly/futures/Future.h
folly/futures/test/ViaTest.cpp