Empeld
Empeld plugin documentation.
pluginbase.Objects.Tasks.ITaskScheduler Interface Reference

Public Member Functions

IScheduledTask ScheduleTask (ITask task)
 Schedules the task. More...
 
void RemoveTask (IScheduledTask task)
 Removes the task. More...
 
void InvokeSync (Action task)
 Invoke the specified delegate in the main process thread If we're already in the main process thread, it will be invoked immediately If not, it will be invoked next time the task schedule processes events More...
 
void QueueAsync (Action task)
 Queues an action to be excuted async within the thread pool ONLY USE IF YOU KNOW WHAT YOUR DOING More...
 

Properties

int Count [get]
 Gets the number of active tasks More...
 

Detailed Description

Attribute: Injectable

Member Function Documentation

◆ InvokeSync()

void pluginbase.Objects.Tasks.ITaskScheduler.InvokeSync ( Action  task)

Invoke the specified delegate in the main process thread If we're already in the main process thread, it will be invoked immediately If not, it will be invoked next time the task schedule processes events

Parameters
taskaction.

Attribute: ThreadSafe

◆ QueueAsync()

void pluginbase.Objects.Tasks.ITaskScheduler.QueueAsync ( Action  task)

Queues an action to be excuted async within the thread pool ONLY USE IF YOU KNOW WHAT YOUR DOING

Parameters
taskAction.

Attribute: ThreadSafe

◆ RemoveTask()

void pluginbase.Objects.Tasks.ITaskScheduler.RemoveTask ( IScheduledTask  task)

Removes the task.

Parameters
taskTask.

Attribute: ThreadSafe

◆ ScheduleTask()

IScheduledTask pluginbase.Objects.Tasks.ITaskScheduler.ScheduleTask ( ITask  task)

Schedules the task.

Parameters
taskTask.

Attribute: ThreadSafe

Property Documentation

◆ Count

int pluginbase.Objects.Tasks.ITaskScheduler.Count
get

Gets the number of active tasks

The count.

Attribute: ThreadSafe


The documentation for this interface was generated from the following file: