Class GodotTaskScheduler
- Namespace
- Godot
- Assembly
- GodotSharp.dll
GodotTaskScheduler contains a linked list of tasks to perform as a queue. Methods within the class are used to control the queue and perform the contained tasks.
public sealed class GodotTaskScheduler : TaskScheduler, IDisposable
- Inheritance
-
GodotTaskScheduler
- Implements
- Inherited Members
Constructors
GodotTaskScheduler()
Constructs a new GodotTaskScheduler instance.
public GodotTaskScheduler()
Methods
Activate()
Executes all queued tasks and pending tasks from the current context.
public void Activate()
Dispose()
public void Dispose()
GetScheduledTasks()
protected override sealed IEnumerable<Task> GetScheduledTasks()
Returns
QueueTask(Task)
protected override sealed void QueueTask(Task task)
Parameters
task
Task
TryDequeue(Task)
protected override sealed bool TryDequeue(Task task)
Parameters
task
Task
Returns
TryExecuteTaskInline(Task, bool)
protected override sealed bool TryExecuteTaskInline(Task task, bool taskWasPreviouslyQueued)