Future constructor
authorDave Watson <davejwatson@fb.com>
Wed, 4 Feb 2015 18:52:49 +0000 (10:52 -0800)
committerAndrew Cox <andrewcox@fb.com>
Wed, 4 Feb 2015 21:03:47 +0000 (13:03 -0800)
commit2006de6b393b3e22889c3c22e10e09e79733574b
tree87bacafe182886a65bb577dc0141a62b2504e5bc
parente7e16f3d559015083a62f1343dcc90c04a9e88f2
Future constructor

Summary:
As a replacement for makeFuture().  The main advantage is for non-void futures, implicit conversion works pretty well.

See unittest for examples

Test Plan: fbconfig -r folly/futures; fbmake runtests

Reviewed By: hannesr@fb.com

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

FB internal diff: D1806575

Signature: t1:1806575:1422465608:6099f791591b70ce1bcda439b49307b8f3187d89
folly/futures/Future-inl.h
folly/futures/Future.h
folly/futures/test/FutureTest.cpp