Add getSemiFuture to folly::SharedPromise
authorLee Howes <lwh@fb.com>
Wed, 27 Dec 2017 04:11:48 +0000 (20:11 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 27 Dec 2017 04:30:53 +0000 (20:30 -0800)
commita5b5328336d1d59c52bb505ed14820cdb7e14fbf
treed6e2eb95a82c0ef52f11945f026e581cde40a1a3
parentdb0ea224863ae8ffe332b19b44526ad6ff045ea7
Add getSemiFuture to folly::SharedPromise

Summary: Adds getSemiFuture functionality to folly::SharedPromise. Implements getFuture in terms of this, using folly::InlineExecutor to ensure that there is no change of behaviour.

Reviewed By: yfeldblum

Differential Revision: D6628723

fbshipit-source-id: 0ce7c7773b9290998ce87f84fa5d82ba957f0313
folly/futures/SharedPromise-inl.h
folly/futures/SharedPromise.h
folly/futures/test/SharedPromiseTest.cpp