Executes F with a new async-stack-root, making it possible to stitch stacks across async hops.
Declared in <folly/fibers/async/AsyncStack.h>
template<typename F>
Async<async_invocable_inner_type_t<F>>
executeWithNewRoot(
F&& func,
AsyncStackFrame* callerFrame);
callerFrame, if not null, must outlive the execution of F.
The async result of invoking func.
| Name | Description |
|---|---|
| func | Function to execute under the new async-stack-root. |
| callerFrame | Frame to stitch the new root onto, or null for none. |