libcoro  1.0
Coroutine support library for C++20

◆ get()

template<typename ... Types>
template<typename fut_type = void>
_details::future_variant_getter<fut_type, future_variant> coro::future_variant< Types >::get ( )
inline

Retrieve result of the future.

Template Parameters
fut_type(optional) specify variant of the future stored in the instance. If this argument is omitted, it tries to detect the type from requested value. However if there is not clear mapping (T -> future<T>) it fails in runtime
Returns
value of resolved future

Definition at line 197 of file future_variant.h.