Edit

Share via


TaskExtensions Class

Definition

Helpers for working with tasks.

public static class TaskExtensions
type TaskExtensions = class
Public Module TaskExtensions
Inheritance
TaskExtensions

Methods

GetResultOrDefault(Task)

Gets the result of a Task if available, or null otherwise.

GetResultOrDefault<T>(Task<T>)

Gets the result of a Task<TResult> if available, or default otherwise.

Applies to