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

Public Member Functions

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

Detailed Description

Definition at line 16 of file async.h.

Constructor & Destructor Documentation

◆ ASync() [1/3]

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.

◆ ASync() [2/3]

ASync::ASync ( const ASync & other)

Definition at line 88 of file async.cpp.

◆ ASync() [3/3]

ASync::ASync ( ASync && other)
noexcept

Definition at line 96 of file async.cpp.

Member Function Documentation

◆ operator=() [1/2]

ASync & Cutelyst::ASync::operator= ( ASync && other)
inlinenoexcept

Definition at line 29 of file async.h.

◆ operator=() [2/2]

ASync & ASync::operator= ( const ASync & copy)

Definition at line 103 of file async.cpp.