Table of Contents

Class DiscardTaskExtensions

Namespace
Trellis
Assembly
Trellis.Results.dll

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

public static class DiscardTaskExtensions
Inheritance
DiscardTaskExtensions
Inherited Members

Methods

DiscardAsync<T>(Task<Result<T>>)

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

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

Parameters

resultTask Task<Result<T>>

The task producing the result to discard.

Returns

Task

Type Parameters

T

Type of the result value.