Click or drag to resize
TaskQueueEnqueueTResult Method (FuncTaskTResult)
Enqueues function.

Namespace: Lawo.Threading.Tasks
Assembly: Lawo (in Lawo.dll) Version: 1.4.1707.27006
Syntax
C#
public Task<TResult> Enqueue<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
A TaskTResult object that represents a proxy for the TaskTResult returned by function.
Exceptions
ExceptionCondition
ArgumentNullExceptionfunction equals null.
Remarks
function is executed on the calling thread.
See Also