Schedule an async-annotated functor to run on a remote thread's fiber manager. Returns a future for the result.
Declared in <folly/fibers/async/FiberManager.h>
template<typename F>
Future<lift_unit_t<async_invocable_inner_type_t<F>>>
addFiberRemoteFuture(
F&& func,
FiberManager& fm);
In most cases, prefer those options instead:
executeOnRemoteFiber: wait on remote fiber from (local) fiber context
executeOnRemoteFiberAndWait: wait on remote fiber from (local) main context
A Future for the functor's result
| Name | Description |
|---|---|
| func | Async-annotated functor to schedule |
| fm | Remote thread's fiber manager to run the functor on |