Adding addTaskFuture and addTaskRemoteFuture to FiberManager.
authorLee Howes <lwh@fb.com>
Fri, 5 Feb 2016 00:19:09 +0000 (16:19 -0800)
committerfacebook-github-bot-4 <folly-bot@fb.com>
Fri, 5 Feb 2016 01:20:27 +0000 (17:20 -0800)
commit9103c1fe9b6c4798f2fd345e867c939d9b8aa897
tree36473836d8a0fadcff62e034d2ed9ab06b0a8a1b
parentfc353ba6b01facad6ec1a8eb55a2e11e1483540c
Adding addTaskFuture and addTaskRemoteFuture to FiberManager.

Summary: Adds functionality to fibermanager to add tasks locally and remotely that will return futures. As a side effect, also wraps the function in addTaskRemote in a move wrapper so that it behaves correctly with move-only types such as promises.

Reviewed By: andriigrynenko, yfeldblum

Differential Revision: D2892898

fb-gh-sync-id: 1666c103db35d9c149c36f8b8c3058cd6e0465fc
folly/experimental/fibers/FiberManager-inl.h
folly/experimental/fibers/FiberManager.h
folly/experimental/fibers/test/FibersTest.cpp