Zth (libzth)
Loading...
Searching...
No Matches
zth::coro::promise_awaitable< Promise, Awaitable > Struct Template Reference

#include <coro.h>

Public Member Functions

char const * id_str () const noexcept
 
decltype(auto) await_ready () noexcept
 
std::coroutine_handle await_suspend (std::coroutine_handle<> h) noexcept
 
decltype(auto) await_resume ()
 

Public Attributes

Promise & promise
 
Awaitable awaitable
 
bool suspended = false
 

Detailed Description

template<typename Promise, typename Awaitable>
struct zth::coro::promise_awaitable< Promise, Awaitable >

Definition at line 207 of file coro.h.

Member Function Documentation

◆ await_ready()

template<typename Promise , typename Awaitable >
decltype(auto) zth::coro::promise_awaitable< Promise, Awaitable >::await_ready ( )
inlinenoexcept

Definition at line 217 of file coro.h.

◆ await_resume()

template<typename Promise , typename Awaitable >
decltype(auto) zth::coro::promise_awaitable< Promise, Awaitable >::await_resume ( )
inline

Definition at line 253 of file coro.h.

◆ await_suspend()

template<typename Promise , typename Awaitable >
std::coroutine_handle zth::coro::promise_awaitable< Promise, Awaitable >::await_suspend ( std::coroutine_handle<>  h)
inlinenoexcept

Definition at line 222 of file coro.h.

◆ id_str()

template<typename Promise , typename Awaitable >
char const * zth::coro::promise_awaitable< Promise, Awaitable >::id_str ( ) const
inlinenoexcept

Definition at line 212 of file coro.h.

Member Data Documentation

◆ awaitable

template<typename Promise , typename Awaitable >
Awaitable zth::coro::promise_awaitable< Promise, Awaitable >::awaitable

Definition at line 209 of file coro.h.

◆ promise

template<typename Promise , typename Awaitable >
Promise& zth::coro::promise_awaitable< Promise, Awaitable >::promise

Definition at line 208 of file coro.h.

◆ suspended

template<typename Promise , typename Awaitable >
bool zth::coro::promise_awaitable< Promise, Awaitable >::suspended = false

Definition at line 210 of file coro.h.


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