Make a SharedPromise from a Future
authorPhil Willoughby <philwill@fb.com>
Mon, 26 Sep 2016 11:59:05 +0000 (04:59 -0700)
committerFacebook Github Bot 1 <facebook-github-bot-1-bot@fb.com>
Mon, 26 Sep 2016 12:08:44 +0000 (05:08 -0700)
commit8bed062637f2af0e85fb5fd4365476e28e18d078
treedff8921c1614919c0af61b888ec8e649ea3a0984
parentb16d3a25b7bec6fa4877822d9abf8b0fe008c5f0
Make a SharedPromise from a Future

Summary: Makes it easy to split a Future into multiple Futures

Reviewed By: rongrong

Differential Revision: D3885897

fbshipit-source-id: 6ac9fb22444dd828fbdebb44b06bf3d93d0f7583
folly/futures/SharedPromise-inl.h
folly/futures/SharedPromise.h
folly/futures/test/SharedPromiseTest.cpp