Do not construct a Future<T> from a Future<Something> value
authorHans Fugal <fugalh@fb.com>
Thu, 30 Apr 2015 22:09:05 +0000 (15:09 -0700)
committerPraveen Kumar Ramakrishnan <praveenr@fb.com>
Tue, 12 May 2015 00:01:41 +0000 (17:01 -0700)
commit5b531cbb45884ad8a27891cf3170cd0286c3183c
tree3819ebe2f523b4a25e7e6c709e89d7d77260db68
parente4c703f058efa86e16ea11ff8471220b3867c2ca
Do not construct a Future<T> from a Future<Something> value

Summary: The value constructor can be nice. But when it matches on Future<Something> it just confuses everybody.

Test Plan:
building and running tests
contbuild

Reviewed By: jsedgwick@fb.com

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

FB internal diff: D2036455

Tasks: 6925951

Signature: t1:2036455:1430423503:73906f748318c4ebec13f45ad3761f104e2ef888
folly/futures/Future-inl.h
folly/futures/Future.h