Replace the future-splitting system
authorPhil Willoughby <philwill@fb.com>
Wed, 15 Feb 2017 11:37:16 +0000 (03:37 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 15 Feb 2017 11:50:20 +0000 (03:50 -0800)
commitbb76b0f7bf1eabf0b66dea063d617e5c6d8de56f
tree703c5d0f4bf4971d9f3d8dd704cd3bddd034c393
parent1ce2015a3da9bd9e9d5ad9837bef3963151b858d
Replace the future-splitting system

Summary:
The previous mechanism in SharedPromise doesn't work if the lifetime of the
SharedPromise object ends before the Future which it was splitting is
completed.

This variation on the same theme doesn't have that problem.

Reviewed By: spacedentist

Differential Revision: D4339670

fbshipit-source-id: f619762bff1390481715575b3e638ec26b5c4edd
folly/Makefile.am
folly/futures/FutureException.h
folly/futures/FutureSplitter.h [new file with mode: 0644]
folly/futures/SharedPromise-inl.h
folly/futures/SharedPromise.h
folly/futures/test/FutureSplitterTest.cpp [new file with mode: 0644]
folly/futures/test/SharedPromiseTest.cpp