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

The CoroContext class. More...

#include <CoroContext.h>

Classes

struct  promise_type
 

Detailed Description

This is a VOID coroutine context aimed at making coroutine usage in Cutelyst safe.

When entering the coroutine body one must call co_yield context; This replaces the need for ASync if only coroutines are used.

In the case of client disconnect Cutelyst::Context destroy() signal is emitted and destroys this coroutine, making sure no use after free is done.

Definition at line 30 of file CoroContext.h.