TTaskScheduler

Global facility that executes a TTask in the background

Inheritance

LevelAncestorDescription
1TObjectUltimate ancestor in a class hierarchy
2TTaskScheduler

Source

Task.Scheduler.pas (39)

Fields

ScopeVisibilityTypeNameDescription
TypepublicTTaskSchedulerInstance
InstanceprotectedTTaskSchedulerThreadTaskSchedulerThread
InstancepublicTEventQueueUserInterfaceEventQueue

Methods

ScopeVisibilityResultNameDescription
TypepublicInitialize()
TypepublicFinalize()
InstanceprotectedExecuteScheduledTaskRecurringly(ScheduledTask: TScheduledTask; Interval: TInteger32)
InstancepublicCreate()
InstancepublicDestroy()
InstancepublicExecute(Task: TTask; Wait: TWaitType)
InstancepublicExecute(Group: TTaskGroup; Wait: TWaitType)Executes Group
InstancepublicExecuteRecurringly(Task: TTask; Interval: TInteger32)Schedules Task to execute recurringly with an Interval in milliseconds
InstancepublicUnschedule(Node: TTaskNode)
InstancepublicTList<TTaskStatus>GetStatuses()Retrieves an snapshot of task statuses in one atomic operation
InstancepublicTBooleanHasUserInterface()
InstancepublicExecuteInUserInterface(Task: TTask; Wait: TWaitType)
InstancepublicCreatePool(TaskClass: TTaskClass; ConcurrencyRange: TInteger32Interval; MaximumQueueSize: TInteger32)Creates a dedicated thread pool for executing tasks with class TaskClass