libcoro  1.0
Coroutine support library for C++20

◆ on_switch() [2/2]

std::coroutine_handle coro::trace::on_switch ( std::coroutine_handle<>  ,
std::coroutine_handle<>  to,
const void *   
)
inline

Record switch (symmetric transfer) from one coroutine to other.

Parameters
fromcoroutine being suspended
tocoroutine being resumed
Note
requires LIBCORO_ENABLE_TRACE

Definition at line 393 of file trace.h.