libcoro  1.0
Coroutine support library for C++20

◆ then()

template<typename T , typename SubscribeFn = function<prepared_coro(promise<T>)>>
template<std::invocable Fn>
prepared_coro coro::subscription< T, SubscribeFn >::then ( 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 104 of file subscription.h.

+ Here is the caller graph for this function: