PoolingAsyncValueTaskMethodBuilder<TResult>.SetException Method

Definition

Marks the value task as failed and binds the specified exception to the value task.

C#
public void SetException(Exception exception);

Parameters

exception
Exception

The exception to bind to the value task.

Applies to

Produkt Versiounen
.NET 6, 7, 8, 9, 10