libcoro  1.0
Coroutine support library for C++20

◆ then()

template<typename T >
template<std::invocable<> Fn>
bool coro::shared_future< T >::then ( Fn &&  fn)
inline

execute callback when future is resolved

Parameters
fncallback to executed. The callback is always executed.
Return values
true,callbackwill be executed
falsecallback has been executed during this function, because the future is already resolved

Definition at line 1565 of file future.h.