[This is preliminary documentation and is subject to change.]

Creates a completed Task with the specified Result value.

Namespace: Simple.Web.HelpersSimple.Web.HelpersSimple::Web::Helpers
Assembly: Simple.Web (in Simple.Web.dll)

Syntax

C#

public static Task<T> Completed<T>(

T value

)

VB

Public Shared Function Completed(Of T)( _

value As T _

) As Task(Of T)

C++

public:

generic<typename T>

static Task<T>^ Completed(

T value

)

Type Parameters

T
The type of the Result value.

Parameters

value
Type: TTT
The value.

Return Value

Type: System.Threading.Tasks.Task<T>System.Threading.Tasks.Task(Of T)System.Threading.Tasks::Task<T>
A Task set to completed with the specified value as the Result.

See Also

TaskHelperTaskHelperTaskHelper Class
CompletedCompletedCompleted Overload
Simple.Web.HelpersSimple.Web.HelpersSimple::Web::Helpers Namespace