Edit

Share via


IAsyncBatchObserver<T>.OnErrorAsync(Exception) Method

Definition

Notifies the consumer that the stream had an error.

The Task returned from this method should be completed when the consumer is done processing the stream closure.

public System.Threading.Tasks.Task OnErrorAsync (Exception ex);
abstract member OnErrorAsync : Exception -> System.Threading.Tasks.Task
Public Function OnErrorAsync (ex As Exception) As Task

Parameters

ex
Exception

An Exception that describes the error that occurred on the stream.

Returns

A Task that is completed when the close has been accepted.

Applies to