Async++ unknown
Async (co_await/co_return) code for C++
Loading...
Searching...
No Matches
asyncpp::channel< T >::write_awaiter Struct Reference

Public Member Functions

write_awaiterresume_on (dispatcher *dsp) noexcept
 Specify a dispatcher to resume after on after writing.
 
constexpr bool await_ready () const noexcept
 
bool await_suspend (coroutine_handle<> hndl)
 
bool await_resume ()
 

Public Attributes

channelm_parent
 
m_value
 
write_awaiterm_next {}
 
coroutine_handle m_handle
 
dispatcherm_dispatcher = dispatcher::current()
 
bool m_result {false}
 

Member Function Documentation

◆ resume_on()

template<typename T >
write_awaiter & asyncpp::channel< T >::write_awaiter::resume_on ( dispatcher * dsp)
inlinenoexcept

Specify a dispatcher to resume after on after writing.

By default the coroutine is resumed on the current dispatcher or inline of the read call if no dispatcher was active at the time of suspension.

Parameters
dspThe dispatcher to resume on or nullptr to resume inside the read call.

The documentation for this struct was generated from the following file: