Click or drag to resize
WorkQueueEnqueueTResult Method (FuncTResult)
Enqueues function.

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

Parameters

function
Type: SystemFuncTResult

Type Parameters

TResult
The type of the result returned by function.

Return Value

Type: TaskTResult
A task that represents the execution of function.
Exceptions
ExceptionCondition
ArgumentNullExceptionfunction equals null.
Remarks
function is executed on an arbitrary thread pool thread.
See Also