Click or drag to resize
TaskSingletonExecuteTResult Method (FuncTaskTResult)
Executes function.

Namespace: Lawo.Threading.Tasks
Assembly: Lawo (in Lawo.dll) Version: 1.4.1707.27006
Syntax
C#
public Task<TResult> Execute<TResult>(
	Func<Task<TResult>> function
)

Parameters

function
Type: SystemFuncTaskTResult

Type Parameters

TResult
The type of the result returned by the TaskTResult returned by function.

Return Value

Type: TaskTResult
The TaskTResult object returned by function.
Exceptions
ExceptionCondition
ArgumentNullExceptionfunction equals null.
InvalidOperationExceptionThe IsCompleted property is false for the Task object returned by a previously called async method.
Remarks
function is executed on the calling thread.
See Also