libcoro
1.0
Coroutine support library for C++20
coro
shared_future
await_ready
await_suspend
get
get_promise
get_promise
has_exception
has_value
is_awaited
is_in_progress
is_pending
operator cast_ret_value
operator!
operator<<
operator<<
operator=
operator>>
requires
reset
set_callback
shared_future
shared_future
shared_future
State
then
wait
~shared_future
◆
set_callback()
template<typename T >
template<std::invocable<> Fn>
bool
coro::shared_future
< T >::set_callback
(
Fn &&
fn
)
inline
set callback which is invoked when future is resolved
Parameters
fn
function
Return values
true
callback set
false
callback was not set, already resolved
Definition at line
1539
of file
future.h
.
Generated on Fri Aug 2 2024 15:51:50 for libcoro by
1.9.1