Unify runInMainContext for void and non-void
authorAndrii Grynenko <andrii@fb.com>
Mon, 15 Feb 2016 19:32:24 +0000 (11:32 -0800)
committerfacebook-github-bot-4 <folly-bot@fb.com>
Mon, 15 Feb 2016 20:20:26 +0000 (12:20 -0800)
commit753868d5ecf3a89595e4a49a1389e5b2b9dd4b9f
tree22f0efcf668ec02b92de4c48822aee15a04bb889
parentfea483aab9906074442e5d77e59c7820e03f0b25
Unify runInMainContext for void and non-void

Summary: This also fixes a bug where exception was not re-thrown for functions returning void.

Reviewed By: spalamarchuk

Differential Revision: D2936887

fb-gh-sync-id: 9828dec131203528c27eae874aba147168f40d0d
shipit-source-id: 9828dec131203528c27eae874aba147168f40d0d
folly/experimental/fibers/FiberManager-inl.h
folly/experimental/fibers/FiberManager.h
folly/experimental/fibers/test/FibersTest.cpp
folly/futures/Try-inl.h
folly/futures/Try.h