resumeCoroutineWithNewAsyncStackRoot overloads

Synopses

Declared in <folly/tracing/AsyncStack.h>

Resume the specified coroutine after installing a new AsyncStackRoot on the current thread and setting the coroutine's associated AsyncStackFrame, obtained by calling promise.getAsyncFrame(), as the current async frame.

template<typename Promise>
void
resumeCoroutineWithNewAsyncStackRoot(coro::coroutine_handle<Promise> h) noexcept;

Resume the specified coroutine after installing a new AsyncStackRoot on the current thread and setting the specified AsyncStackFrame as the current async frame.

void
resumeCoroutineWithNewAsyncStackRoot(
    coro::coroutine_handle<> h,
    AsyncStackFrame& frame) noexcept;

Parameters

Name

Description

h

Handle of the coroutine to resume.

frame

The async frame to set as the current frame.

Created with MrDocs