emlabcpp
modern opinionated embedded C++ library
|
#include <coroutine.h>
Classes | |
struct | promise_type |
Public Types | |
using | handle = std::coroutine_handle< promise_type > |
using | owning_handle = coro::owning_coroutine_handle< promise_type > |
Public Member Functions | |
coroutine ()=default | |
coroutine (handle const &cor) | |
coroutine (coro_state s) | |
bool | done () const |
coro_state | get_state () const override |
bool | await_ready () const |
void | await_suspend (auto const &h) |
auto | await_resume () |
auto | run () |
void | tick () override |
![]() | |
virtual | ~wait_interface ()=default |
using emlabcpp::testing::coroutine< T >::handle = std::coroutine_handle< promise_type > |
using emlabcpp::testing::coroutine< T >::owning_handle = coro::owning_coroutine_handle< promise_type > |
|
explicitdefault |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
Implements emlabcpp::testing::wait_interface.
|
inline |
|
inlineoverridevirtual |
Reimplemented from emlabcpp::testing::wait_interface.
References emlabcpp::testing::DONE, emlabcpp::testing::coroutine< T >::done(), emlabcpp::testing::ERRORED, emlabcpp::testing::FAILED, emlabcpp::testing::wait_interface::get_state(), emlabcpp::testing::coroutine< T >::promise_type::iface, emlabcpp::coro::owning_coroutine_handle< PromiseType >::promise(), emlabcpp::testing::SKIPPED, emlabcpp::testing::wait_interface::tick(), and emlabcpp::testing::WAITING.