Table of Contents

Class DiscardValueTaskExtensions

Namespace
Trellis
Assembly
Trellis.Results.dll

Provides async extension methods for explicitly discarding a ValueTask-wrapped Result value.

public static class DiscardValueTaskExtensions
Inheritance
DiscardValueTaskExtensions
Inherited Members

Methods

DiscardAsync<T>(ValueTask<Result<T>>)

Awaits the value task and explicitly discards the result, indicating the caller intentionally ignores the outcome.

public static ValueTask DiscardAsync<T>(this ValueTask<Result<T>> resultTask)

Parameters

resultTask ValueTask<Result<T>>

The value task producing the result to discard.

Returns

ValueTask

Type Parameters

T

Type of the result value.