Base class for all async results (argument of completion callbacks). More...
#include <Async.h>
Public Member Functions | |
AsyncResult (AsyncRequest &request, SC::Result &&res) | |
Constructs an async result from a request and a result. More... | |
AsyncResult (AsyncRequest &request) | |
Constructs an async result from a request. More... | |
void | reactivateRequest (bool value) |
Ask the event loop to re-activate this request after it was already completed. More... | |
const SC::Result & | isValid () const |
Check if the returnCode of this result is valid. More... | |
Public Attributes | |
AsyncRequest & | async |
Protected Attributes | |
bool | shouldBeReactivated = false |
bool | shouldCallCallback = true |
SC::Result | returnCode = SC::Result(true) |
Friends | |
struct | AsyncEventLoop |
Base class for all async results (argument of completion callbacks).
It holds Result (returnCode) and re-activation flag.
|
inline |
Constructs an async result from a request and a result.
|
inline |
Constructs an async result from a request.
|
inline |
Check if the returnCode of this result is valid.
|
inline |
Ask the event loop to re-activate this request after it was already completed.
value | true will reactivate the request |