Corium 1.1.0
High-Performance Zero-Heap C++20 MPSC Application Runtime
Loading...
Searching...
No Matches
corium::async::AsyncEvent< void > Class Reference

Specialization of AsyncEvent for void signaling. More...

#include <AsyncEvent.hpp>

+ Collaboration diagram for corium::async::AsyncEvent< void >:

Classes

struct  Awaiter
 

Public Types

using ValueType = void
 

Public Member Functions

constexpr AsyncEvent ()=default
 
void emit () noexcept
 Signal the event and resume waiting coroutine.
 
bool isReady () const noexcept
 Check if event has been signaled.
 
Awaiter operator co_await () noexcept
 Direct co_await support on AsyncEvent instance.
 
void reset () noexcept
 Reset event to unsignaled state.
 
Awaiter wait () noexcept
 Awaiter factory for co_await syntax.
 

Detailed Description

Specialization of AsyncEvent for void signaling.

Member Typedef Documentation

◆ ValueType

using corium::async::AsyncEvent< void >::ValueType = void

Constructor & Destructor Documentation

◆ AsyncEvent()

constexpr corium::async::AsyncEvent< void >::AsyncEvent ( )
constexprdefault

Member Function Documentation

◆ emit()

void corium::async::AsyncEvent< void >::emit ( )
inlinenoexcept

Signal the event and resume waiting coroutine.

◆ isReady()

bool corium::async::AsyncEvent< void >::isReady ( ) const
inlinenoexcept

Check if event has been signaled.

◆ operator co_await()

Awaiter corium::async::AsyncEvent< void >::operator co_await ( )
inlinenoexcept

Direct co_await support on AsyncEvent instance.

◆ reset()

void corium::async::AsyncEvent< void >::reset ( )
inlinenoexcept

Reset event to unsignaled state.

◆ wait()

Awaiter corium::async::AsyncEvent< void >::wait ( )
inlinenoexcept

Awaiter factory for co_await syntax.


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