libcoro
1.0
Coroutine support library for C++20
coro
future_variant
get
get
get
get_promise
holds_alternative
operator co_await
operator<<
reset
wait
◆
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
.
Generated on Fri Aug 2 2024 15:51:50 for libcoro by
1.9.1