cutelyst  3.9.1
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
Public Member Functions | List of all members
Cutelyst::ASync Class Reference

Public Member Functions

 ASync (Context *c)
 ASync class should be used in a scoped manner. More...
 
 ASync (Context *c, std::function< void(Context *c)> cb)
 
 ASync (const ASync &other)
 Copy constructor.
 
 ASync (ASync &&other) noexcept
 Move constructor.
 
ASyncoperator= (const ASync &copy)
 
ASyncoperator= (ASync &&other) noexcept
 

Detailed Description

Definition at line 16 of file async.h.

Constructor & Destructor Documentation

◆ ASync()

ASync::ASync ( Context c)

This constructor will call c->detachAsync() and once it goes out of scope it will call c->attachAsync() if Context pointer is still valid.

Make sure it is captured by lambdas to avoid it leaving scope.

Parameters
c

Definition at line 63 of file async.cpp.