The TaskDistributor type exposes the following members.

Constructors

  NameDescription
Public methodTaskDistributor(String)
Creates a new instance of the TaskDistributor with ProcessorCount x2 worker threads. The task distributor will auto start his worker threads.
Public methodTaskDistributor(String, Int32)
Creates a new instance of the TaskDistributor. The task distributor will auto start his worker threads.
Public methodTaskDistributor(String, Int32, Boolean)
Creates a new instance of the TaskDistributor.

Methods

  NameDescription
Protected methodCheckAccessLimitation (Overrides DispatcherBase..::..CheckAccessLimitation()()()().)
Public methodDispatch(Action)
Creates a new Task based upon the given action.
(Inherited from DispatcherBase.)
Public methodDispatch(Task)
Dispatches a given Task.
(Inherited from DispatcherBase.)
Public methodDispatch<(Of <<'(T>)>>)(Func<(Of <<'(T>)>>))
Creates a new Task based upon the given action.
(Inherited from DispatcherBase.)
Public methodDispose
Disposes all TaskDistributor, worker threads, resources and remaining tasks.
(Overrides DispatcherBase..::..Dispose()()()().)
Protected methodReorderTasks (Inherited from DispatcherBase.)
Public methodSpawnAdditionalWorkerThread
Public methodStart
Starts the TaskDistributor if its not currently running.

Extension Methods

  NameDescription
Public Extension MethodRunAsync(String, array<Object>[]()[][])Overloaded.
Starts the given Method as async Task on the given TaskDistributor.
(Defined by ObjectExtension.)
Public Extension MethodRunAsync(String, TaskDistributor, array<Object>[]()[][])Overloaded.
Starts the given Method as async Task on the given TaskDistributor.
(Defined by ObjectExtension.)
Public Extension MethodRunAsync<(Of <<'(T>)>>)(String, array<Object>[]()[][])Overloaded.
Starts the given Method as async Task on the given TaskDistributor.
(Defined by ObjectExtension.)
Public Extension MethodRunAsync<(Of <<'(T>)>>)(String, TaskDistributor, array<Object>[]()[][])Overloaded.
Starts the given Method as async Task on the given TaskDistributor.
(Defined by ObjectExtension.)

Fields

  NameDescription
Public fieldAllowAccessLimitationChecks (Inherited from DispatcherBase.)
Public fieldAllowDynamicGrowth
True when the TaskDistributor instance can spawn new threads to handle the workload.
Protected fielddataEvent (Inherited from DispatcherBase.)
Protected fieldtaskList (Inherited from DispatcherBase.)
Public fieldTaskSortingSystem
Set the task reordering system
(Inherited from DispatcherBase.)

Properties

  NameDescription
Public propertyStatic memberMain
Returns the first created TaskDistributor instance. When no instance has been created an exception will be thrown.
Public propertyStatic memberMainNoThrow
Returns the first created TaskDistributor instance.
Public propertyTaskCount
Returns the currently existing task count. Early aborted tasks will count too.
(Inherited from DispatcherBase.)

See Also