Bridge

Task..::..FromResult<(Of <(<'TResult>)>)> Method

Creates a Task<(Of <(<'TResult>)>)> that's completed successfully with the specified result.

Namespace:  System.Threading.Tasks
Assembly:  Bridge (in Bridge.dll)

Syntax


public static Task<TResult> FromResult<TResult>(
	TResult result
)
Public Shared Function FromResult(Of TResult) ( _
	result As TResult _
) As Task(Of TResult)
public:
generic<typename TResult>
static Task<TResult>^ FromResult(
	TResult result
)

Type Parameters

TResult
The type of the result returned by the task.

Parameters

result
Type: TResult
The result to store into the completed task.

Return Value

The successfully completed task.