Click or drag to resize
TaskSingletonExecute Method (FuncTask)
Executes function.

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

Parameters

function
Type: SystemFuncTask

Return Value

Type: Task
A Task object that represents a proxy for the Task 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