libcoro  1.0
Coroutine support library for C++20

◆ promise() [2/4]

template<typename T , bool atomic>
coro::promise< T, atomic >::promise ( FutureType ptr)
inlineexplicit

Bound promise to future.

Parameters
ptrpointer to promise
Note
requires pending future, (not checked)

Definition at line 195 of file future.h.