Table of Contents

GetAwaiter

Methods
public TaskAwaiter<StorageOperation> GetAwaiter()

Gets an object that can be used to await for this operation to complete.

Returns
Type Description
TaskAwaiter<StorageOperation>

A new task awaiter instance.

Remarks

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.