Awaitable Types and Functions in the Coroutines Library
Get introduced to the awaitable types and functions of coroutines library in C++23.
We'll cover the following...
We'll cover the following...
cppcoro provides more awaitable types.
Awaitable types
cppcoro supports various awaitable types:
single_consumer_eventsingle_consumer_async_auto_reset_eventasync_mutexasync_manual_reset_eventasync_auto_reset_eventasync_latchsequence_barriermulti_producer_sequencersingle_producer_sequencer
I want to have a closer look at the awaitables single_consumer_event and async_mutex.
single_consumer_event
The single_consumer_event is, according to the documentation, a simple manual-reset event type that supports only a single ...