cutelyst 4.8.0
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
Cutelyst::CoroContext::promise_type Struct Reference

Public Member Functions

bool await_ready () const noexcept
void await_resume () const noexcept
void await_suspend (std::coroutine_handle<> h) noexcept
void clean ()
std::suspend_never final_suspend () noexcept
CoroContext get_return_object ()
std::suspend_never initial_suspend () const noexcept
void return_void () noexcept
void unhandled_exception ()
std::suspend_never yield_value (Cutelyst::Context *obj)
std::suspend_never yield_value (QObject *obj)

Public Attributes

std::vector< QMetaObject::Connectionconnections
std::coroutine_handle< promise_typehandle

Detailed Description

Definition at line 33 of file CoroContext.h.

Constructor & Destructor Documentation

◆ ~promise_type()

Cutelyst::CoroContext::promise_type::~promise_type ( )
inline

Definition at line 95 of file CoroContext.h.

Member Function Documentation

◆ await_ready()

bool Cutelyst::CoroContext::promise_type::await_ready ( ) const
inlinenoexcept

Definition at line 57 of file CoroContext.h.

◆ await_resume()

void Cutelyst::CoroContext::promise_type::await_resume ( ) const
inlinenoexcept

Definition at line 93 of file CoroContext.h.

◆ await_suspend()

void Cutelyst::CoroContext::promise_type::await_suspend ( std::coroutine_handle<> h)
inlinenoexcept

Definition at line 92 of file CoroContext.h.

◆ clean()

void Cutelyst::CoroContext::promise_type::clean ( )
inline

Definition at line 37 of file CoroContext.h.

◆ final_suspend()

std::suspend_never Cutelyst::CoroContext::promise_type::final_suspend ( )
inlinenoexcept

Definition at line 54 of file CoroContext.h.

◆ get_return_object()

CoroContext Cutelyst::CoroContext::promise_type::get_return_object ( )
inline

Definition at line 47 of file CoroContext.h.

◆ initial_suspend()

std::suspend_never Cutelyst::CoroContext::promise_type::initial_suspend ( ) const
inlinenoexcept

Definition at line 53 of file CoroContext.h.

◆ return_void()

void Cutelyst::CoroContext::promise_type::return_void ( )
inlinenoexcept

Definition at line 45 of file CoroContext.h.

◆ unhandled_exception()

void Cutelyst::CoroContext::promise_type::unhandled_exception ( )
inline

Definition at line 55 of file CoroContext.h.

◆ yield_value() [1/2]

std::suspend_never Cutelyst::CoroContext::promise_type::yield_value ( Cutelyst::Context * obj)
inline

Definition at line 72 of file CoroContext.h.

◆ yield_value() [2/2]

std::suspend_never Cutelyst::CoroContext::promise_type::yield_value ( QObject * obj)
inline

Definition at line 59 of file CoroContext.h.

Member Data Documentation

◆ connections

std::vector<QMetaObject::Connection> Cutelyst::CoroContext::promise_type::connections

Definition at line 35 of file CoroContext.h.

◆ handle

std::coroutine_handle<promise_type> Cutelyst::CoroContext::promise_type::handle

Definition at line 34 of file CoroContext.h.