Anklang-0.3.0.dev712+gdc4e642f anklang-0.3.0.dev712+gdc4e642f
ASE — Anklang Sound Engine (C++)

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Ase::Loop::Promise< Result >::PromiseAwaiter Struct Reference

Helper to capture shared_ptr<Promise> to allow co_await on temporary Promise instances. More...

#include "loop.hh"

Public Member Functions

bool await_ready () const noexcept
 
bool await_suspend (std::coroutine_handle<> waiter) noexcept
 
Result await_resume ()
 

Public Attributes

std::shared_ptr< Promisepromise_
 

Detailed Description

template<typename Result>
struct Ase::Loop::Promise< Result >::PromiseAwaiter

Helper to capture shared_ptr<Promise> to allow co_await on temporary Promise instances.

Definition at line 370 of file loop.hh.

Member Function Documentation

◆ await_ready()

template<typename Result >
bool Ase::Loop::Promise< Result >::PromiseAwaiter::await_ready ( ) const
noexcept

Definition at line 373 of file loop.hh.

◆ await_resume()

template<typename Result >
Result Ase::Loop::Promise< Result >::PromiseAwaiter::await_resume ( )

Definition at line 388 of file loop.hh.

◆ await_suspend()

template<typename Result >
bool Ase::Loop::Promise< Result >::PromiseAwaiter::await_suspend ( std::coroutine_handle<>  waiter)
noexcept

Definition at line 379 of file loop.hh.

Member Data Documentation

◆ promise_

template<typename Result >
std::shared_ptr<Promise> Ase::Loop::Promise< Result >::PromiseAwaiter::promise_

Definition at line 371 of file loop.hh.


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