libcoro  1.0
Coroutine support library for C++20

◆ get_future()

template<typename T , bool atomic>
const FutureType* coro::promise< T, atomic >::get_future ( ) const
inline

Retrieve pointer to an associated future.

This allows to identify target object. You should avoid to use pointer to control associated future. This is reason, why only const API is only defined

Returns
const pointer to the associated future
Note
If you need to control the associated future, you need to call release()

Definition at line 285 of file future.h.

+ Here is the caller graph for this function: