libcoro  1.0
Coroutine support library for C++20

◆ init_lock() [1/2]

template<typename T , typename SubscribeFn = function<prepared_coro(promise<T>)>>
static constexpr lock_ptr coro::subscription< T, SubscribeFn >::init_lock ( )
inlinestaticconstexpr

initialize lock_ptr object, which can be used to call lock() to wait on subscription and process result

Definition at line 132 of file subscription.h.