tin  1.5.9
tsm::select_awaitable< Awaitables > Class Template Reference

#include <coroutine.h>

Collaboration diagram for tsm::select_awaitable< Awaitables >:
Collaboration graph

Public Member Functions

 select_awaitable (Awaitables... awaitables)
 
bool await_ready () noexcept
 
void await_suspend (task::handle_type handle) noexcept
 
select_result await_resume () noexcept
 

Detailed Description

template<runtime::detail::basic_awaitable... Awaitables>
class tsm::select_awaitable< Awaitables >

Wait for the first ready awaitable in a small fixed set.

The selected index corresponds to the argument order. This primitive is intended for event/timer control flow such as "button or timeout". Payload extraction remains explicit through channels/signals outside the select.

Constructor & Destructor Documentation

◆ select_awaitable()

template<runtime::detail::basic_awaitable... Awaitables>
tsm::select_awaitable< Awaitables >::select_awaitable ( Awaitables...  awaitables)
inlineexplicit

Member Function Documentation

◆ await_ready()

template<runtime::detail::basic_awaitable... Awaitables>
bool tsm::select_awaitable< Awaitables >::await_ready ( )
inlinenoexcept

◆ await_resume()

template<runtime::detail::basic_awaitable... Awaitables>
select_result tsm::select_awaitable< Awaitables >::await_resume ( )
inlinenoexcept

◆ await_suspend()

template<runtime::detail::basic_awaitable... Awaitables>
void tsm::select_awaitable< Awaitables >::await_suspend ( task::handle_type  handle)
inlinenoexcept

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