|
Cutelyst
2.14.2
|
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 & | operator= (const 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.
| c |
Definition at line 65 of file async.cpp.
References Cutelyst::Context::detachAsync().
1.8.6