CloudOperation<TError>
Represents an asynchronous operation used to communicate with coherence Cloud.
Type Parameters
TErrorType of object returned if the operation fails.
Remarks
Async methods can await to wait until the operation finishes.
Coroutines can yield to wait until the operation finishes.
Constructors
| CloudOperation(Task) | |
| CloudOperation(Task, CancellationToken) |
Fields
| task |
Properties
| Error | |
| HasFailed | Gets whether the operation has failed.
|
| IsCanceled | Gets whether this operation has completed execution due to being canceled. |
| IsCompleted | Gets whether the operation has completed.
|
| IsCompletedSuccessfully | Gets whether the operation has completed successfully. |
| keepWaiting |
Methods
| ContinueWith(Action, TaskContinuationOptions) | Specify an action to perform after the operation has completed (IsCompleted is true. |
| 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 is true. |
| OnSuccess(Action) | Specify an action to perform if the operation completes successfully (IsCompletedSuccessfully is true. |
| ToString() |
Operators
| implicit operator Exception(CloudOperation<TError>) | |
| implicit operator Task(CloudOperation<TError>) |