CompletedTaskFromResultTResult Method |
Gets a completed
TaskTResult with the specified result.
Namespace: Rackspace.ThreadingAssembly: Rackspace.Threading (in Rackspace.Threading.dll) Version: 2.1.0-beta1
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
)
static member FromResult :
result : 'TResult -> Task<'TResult>
Parameters
- result
- Type: TResult
The result of the completed task.
Type Parameters
- TResult
- The task result type.
Return Value
Type:
TaskTResultA completed
TaskTResult, whose
Result property returns the specified
result.
Version Information
.NET for Windows Store apps
Supported in: Windows 8
.NET Framework
Supported in: 4.5, 4.0, 3.5
Portable Class Library
Supported in: Portable Class Library (Legacy), Portable Class Library
Threading Library
Supported in: 2.1, 2.0, 1.1, 1.0
See Also