libcoro  1.0
Coroutine support library for C++20

◆ get_promise()

template<typename ... Types>
template<typename promise_type >
auto& coro::future_variant< Types >::get_promise ( promise_type &  p)
inline

Initialize underlying future and retrieves promise.

Parameters
preference to unbound promise object
Returns
reference to associated future after promise is bound to it

Definition at line 145 of file future_variant.h.