Table of Contents

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

IEnumerable<Task>

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

bool

TryExecuteTaskInline(Task, bool)

protected override sealed bool TryExecuteTaskInline(Task task, bool taskWasPreviouslyQueued)

Parameters

task Task
taskWasPreviouslyQueued bool

Returns

bool