class
AsyncOp
Common base for all TAsyncOp specializations.
Public
Constructors
AsyncOp
AsyncOp(AsyncOpEmpty empty)
AsyncOp
AsyncOp(const AsyncOp &other) = default
AsyncOp
AsyncOp(AsyncOp &&other)
Methods
HasCompleted
bool HasCompleted() const
Returns true if the async operation has completed.
BlockUntilComplete
void BlockUntilComplete(bool blockUntilCallbacksComplete = true) const
Blocks the caller thread until the AsyncOp completes.
- blockUntilCallbacksComplete
- If true, this method will block until all registered completion callbacks finished executing as well. Otherwise, it will just wait until the operation has completed, but callbacks might have not been triggered yet.
GetGenericReturnValue
Any GetGenericReturnValue() const
Retrieves the value returned by the async operation as a generic type.
Only valid if HasCompleted() returns true.
Operators
Protected
Constructors
AsyncOp
AsyncOp() = default
AsyncOp
explicit AsyncOp(SPtr<AsyncOpDataBase> data)
Fields
mData
SPtr<AsyncOpDataBase> mData