libcoro  1.0
Coroutine support library for C++20

◆ future() [2/3]

template<typename T >
template<std::invocable< promise_t > Fn>
coro::future< T >::future ( Fn &&  fn)
inline

Construct future which is evaluated inside of lambda function.

Parameters
fna lambda function which receives promise object

Definition at line 496 of file future.h.