Class TaskExtensions

Exposes several handy methods related to System.Threading.Tasks.Tasks.

Inheritance
System.Object
TaskExtensions
Namespace: Solti.Utils.Primitives.Threading
Assembly: Solti.Utils.Primitives.dll
Syntax
public static class TaskExtensions : Object

Methods

Cast<T>(Task<T>, Type)

Casts the given System.Threading.Tasks.Task.

Declaration
public static Task Cast<T>(this Task<T> task, Type returnType)
Parameters
Type Name Description
System.Threading.Tasks.Task<T> task
System.Type returnType
Returns
Type Description
System.Threading.Tasks.Task
Type Parameters
Name Description
T

Cast<T, TT>(Task<T>)

Casts the given System.Threading.Tasks.Task.

Declaration
public static Task<TT> Cast<T, TT>(this Task<T> task)
Parameters
Type Name Description
System.Threading.Tasks.Task<T> task
Returns
Type Description
System.Threading.Tasks.Task<TT>
Type Parameters
Name Description
T
TT
In This Article
Back to top Generated by DocFX