libcoro  1.0
Coroutine support library for C++20

◆ operator co_await()

template<typename ... Types>
awaiter coro::future_variant< Types >::operator co_await ( )
inline

Helps to co_wait on future regardless on which variant is active.

Returns
awaiter.
Note
the awaiter doesn't return value. It only suspends coroutine if the result of current variant is not available. You need to use get() to retrieve value after wait

Definition at line 211 of file future_variant.h.