libcoro  1.0
Coroutine support library for C++20

◆ operator>>()

template<typename T , typename SubscribeFn = function<prepared_coro(promise<T>)>>
template<std::invocable Fn>
void coro::subscription< T, SubscribeFn >::operator>> ( Fn &&  fn)
inline

define callback, which is called when value is ready

Parameters
fncallback
Returns
handle to coroutine to switch, if there is such (can be ignored)

Definition at line 116 of file subscription.h.