(Wangle) Reduce
authorHannes Roth <hannesr@fb.com>
Wed, 25 Mar 2015 22:39:32 +0000 (15:39 -0700)
committerafrind <afrind@fb.com>
Thu, 2 Apr 2015 18:57:45 +0000 (11:57 -0700)
commit3e447ce40b23c86a6bca8cbaa91e32530962486b
tree365d70588e3c633f6e7c574d33e5184359acebeb
parent2184167af16ed892c4a1cd76866c7dde6f1483c8
(Wangle) Reduce

Summary:
1] The lambda should ble able to return a `Try<T>`. Maybe? Can a `then`
return a `Try<T>` actually? Can fix this with `resultOf`. (Doubling the number of functions to 4.)

2] `initial` and `func` have to be copyable.

Test Plan: Added tests.

Reviewed By: hans@fb.com

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

FB internal diff: D1870996

Tasks: 6025252

Signature: t1:1870996:1427318511:2ae5894b79022da88990835b26d35c4520fdbd29
folly/futures/Future-inl.h
folly/futures/Future.h
folly/futures/test/FutureTest.cpp