Click or drag to resize

ParallelWorkBroker.QueueWork<T> Method (Func<T>, DispatchQueueType, Func<Task<T>, T>)

Queues the work specified in the form of the func workToQueueFunc, on the queue specified.

Namespace:  SD.LLBLGen.Pro.ApplicationCore.Parallelization
Assembly:  SD.LLBLGen.Pro.ApplicationCore (in SD.LLBLGen.Pro.ApplicationCore.dll) Version: 5.6.0.0 (5.6.19.0117)
Syntax
public Task<T> QueueWork<T>(
	Func<T> workToQueueFunc,
	DispatchQueueType queueToUse,
	Func<Task<T>, T> continuationFunc
)

Parameters

workToQueueFunc
Type: System.Func<T>
The work.
queueToUse
Type: SD.LLBLGen.Pro.ApplicationCore.DispatchQueueType
The queue to use.
continuationFunc
Type: System.Func<Task<T>, T>
The continuation function to pass to ContinueWith on the created task if not null. If null, no continuation is created.

Type Parameters

T
The type of the result of the work queue func and the continuation func

Return Value

Type: Task<T>
The task created which is dispatched on the queue specified
See Also