Table of Contents

GetAwaiter

method in Coherence.Cloud
Methods
public TaskAwaiter<CloudOperation<TError>> GetAwaiter()

Gets an object that can be used to await for this operation to complete. Awaiting the result of this method never causes an exception to be thrown. To handle errors you can either:

  1. Check if HasFailed is true and then examine the Error property for more details about what went wrong.
  2. Use the OnFail(Action<TError>) method to specify an action to perform if the operation fails.
Returns
Type Description
TaskAwaiter<CloudOperation<TError>>

A new task awaiter instance.