Helper holding CompletionData for a specific AsyncRequest-derived class. More...
#include <Async.h>
Public Member Functions | |
T & | getAsync () |
const T & | getAsync () const |
AsyncResult (AsyncEventLoop &eventLoop, AsyncRequest &request, SC::Result &res, bool *hasBeenReactivated=nullptr) | |
Constructs an async result from a request and a result. | |
![]() | |
AsyncResult (AsyncEventLoop &eventLoop, AsyncRequest &request, SC::Result &res, bool *hasBeenReactivated=nullptr) | |
Constructs an async result from a request and a result. | |
void | reactivateRequest (bool shouldBeReactivated) |
Ask the event loop to re-activate this request after it was already completed. | |
const SC::Result & | isValid () const |
Check if the returnCode of this result is valid. | |
Public Attributes | |
C | completionData |
int32_t | eventIndex = 0 |
![]() | |
AsyncEventLoop & | eventLoop |
AsyncRequest & | async |
Additional Inherited Members | |
![]() | |
bool | shouldCallCallback = true |
bool * | hasBeenReactivated = nullptr |
SC::Result & | returnCode |
Helper holding CompletionData for a specific AsyncRequest-derived class.
T | Type of the request class associated to this result |
C | Type of the CompletionData derived class associated to this result |
|
inline |
Constructs an async result from a request and a result.