libcoro  1.0
Coroutine support library for C++20

◆ on_switch() [1/2]

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

Record switch (symmetric transfer) when boolean is returned from await_suspend.

Parameters
fromcoroutine being suspended
suspendtrue if coroutine is suspended false if continues
Note
requires LIBCORO_ENABLE_TRACE

Definition at line 403 of file trace.h.