Connects the execution of synchronous function F (on the main thread context) to the calling fiber
Declared in <folly/fibers/async/AsyncStack.h>
template<typename F>
std::invoke_result_t<F>
runInMainContextWithTracing(F&& func);
Note: The calling fiber must have a valid async-stack-root for meaningful stacks.
The result of invoking func.
| Name | Description |
|---|---|
| func | Synchronous function to run on the main thread context. |