libcoro  1.0
Coroutine support library for C++20

◆ operator()() [2/2]

template<typename T >
void coro::deferred_future< T >::operator() ( promise_t &&  prom) &&
inline

By calling deferred future with a promise, the future is started and result is trensfered to the promise.

This allows to convert deferred_future to a future. The state of current object is change to resolved without a value.

Definition at line 1302 of file future.h.