|
| | 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 ©) |
Definition at line 16 of file async.h.
◆ ASync() [1/3]
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
-
Definition at line 63 of file async.cpp.
◆ ASync() [2/3]
| ASync::ASync |
( |
const ASync & | other | ) |
|
◆ ASync() [3/3]
| ASync::ASync |
( |
ASync && | other | ) |
|
|
noexcept |
◆ operator=() [1/2]
| ASync & Cutelyst::ASync::operator= |
( |
ASync && | other | ) |
|
|
inlinenoexcept |
◆ operator=() [2/2]
| ASync & ASync::operator= |
( |
const ASync & | copy | ) |
|