Ensure that returning a semifuture from a continuation works correctly.
authorLee Howes <lwh@fb.com>
Tue, 26 Dec 2017 21:34:26 +0000 (13:34 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 26 Dec 2017 21:35:23 +0000 (13:35 -0800)
commitfb2a27a30f30b5d612ea4728f9216b127ba0145d
tree2e1015a12d714359de4bb32a3377847d7f3e58e5
parentd0956208d06806377b05e4daef5450603ce4ad63
Ensure that returning a semifuture from a continuation works correctly.

Summary: Returning a SemiFuture from a continuation should work by correctly checking the types and returning a folly::Future on the same executor as the original future that .then was applied to.

Reviewed By: yfeldblum

Differential Revision: D6597273

fbshipit-source-id: cf2016a344d4b29f1d31c1da20c89df5b4cfe64e
folly/futures/Future-pre.h
folly/futures/test/SemiFutureTest.cpp