libcoro  1.0
Coroutine support library for C++20

◆ symmetric_transfer()

template<typename T , bool atomic>
std::coroutine_handle coro::promise< T, atomic >::notify::symmetric_transfer ( )
inline

deliver the notification with ability to switch to the coroutine

support for symmetric transfer

Returns
return value must be used in await_suspend() - (otherwise the notification can be lost). This allows to transfer from current coroutine to resuming coroutine. If the awaiter is not coroutine, the function simply delivers to notification and return noop_coroutine()

Definition at line 127 of file future.h.