Pigweed
 
Loading...
Searching...
No Matches
pw::async2::internal::Awaitable< Pendable, PromiseType > Class Template Reference

Public Types

using OutputType = std::remove_cvref_t< decltype(std::declval< std::remove_pointer_t< Pendable > >() .Pend(std::declval< Context & >()) .value())>
 

Public Member Functions

 Awaitable (Pendable &&pendable)
 
bool await_ready ()
 
bool await_suspend (const std::coroutine_handle< PromiseType > &promise)
 
OutputType && await_resume ()
 
auto & PendableNoPtr ()
 
Poll PendFillReturnValue (Context &cx)
 

Member Function Documentation

◆ await_suspend()

template<typename Pendable , typename PromiseType >
bool pw::async2::internal::Awaitable< Pendable, PromiseType >::await_suspend ( const std::coroutine_handle< PromiseType > &  promise)
inline

The coroutine should suspend since the await-ed thing is pending.


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