CloudOperation<TResult, TError>
Represents an asynchronous operation used to communicate with coherence Cloud with a result of type
Type Parameters
TResultType of object returned if the operation succeeds.
TErrorType of object returned if the operation fails.
Remarks
Async methods can use await to wait until the operation finishes.
Coroutines can use yield to wait until the operation finishes.
ContinueWith(Action, TaskContinuationOptions) can also be used to perform an action after the operation has completed.
Constructors
| CloudOperation(Task<TResult>) | |
| CloudOperation(Task<TResult>, CancellationToken) |
Properties
| Result | The result of the operation, if it has completed successfully; otherwise, the default value of TResult. |
| task |
Methods
| ContinueWith(Action, TaskContinuationOptions) | Specify an action to perform after the operation has completed (IsCompleted becomes true. |
| Deconstruct(out TResult, out TError) | |
| GetAwaiter() | Gets an object that can be used to await for this operation to complete. |
| OnFail(Action<TError>) | Specify an action to perform if the operation fails (HasFailed becomes true. |
| OnSuccess(Action<TResult>) | Specify an action to perform if the operation completes successfully (IsCompletedSuccessfully becomes true. |
| ResultToString(TResult) | |
| ToString() |
Operators
| implicit operator TResult(CloudOperation<TResult, TError>) |