ImmediateScheduler
StockSharp.Xaml.Charting.Threading
Provides a task scheduler that runs tasks on the current thread.
Erbt von: TaskScheduler
Eigenschaften
MaximumConcurrencyLevel : int
Gets the maximum degree of parallelism for this scheduler.
Methoden
GetScheduledTasks() : IEnumerable<Task>
Gets the Tasks currently scheduled to this scheduler.
Rückgabe: An empty enumerable, as Tasks are never queued, only executed.
QueueTask(Task)
Runs the provided Task synchronously on the current thread.
- task
- The task to be executed.
TryExecuteTaskInline(Task, bool) : bool
Runs the provided Task synchronously on the current thread.
- task
- The task to be executed.
- taskWasPreviouslyQueued
- Whether the Task was previously queued to the scheduler.
Rückgabe: True if the Task was successfully executed; otherwise, false.