Skip to content

ScheduledTask

Namespace Mc.Scripting · Kind class (sealed)

public sealed class ScheduledTask : IDisposable, IPluginResource

A scheduled task. Dispose/Cancel to stop it.

Member Description
bool IsCancelled { get; } Whether the task was cancelled or finished.
public bool IsCancelled { get; }

Whether the task was cancelled or finished.

Member Description
void Cancel() Stops the task.
void Dispose() Same as ScheduledTask.Cancel.
public void Cancel()

Stops the task.

public void Dispose()

Same as ScheduledTask.Cancel.

IPluginResource