ScheduledTask
Namespace Mc.Scripting · Kind class (sealed)
public sealed class ScheduledTask : IDisposable, IPluginResourceA scheduled task. Dispose/Cancel to stop it.
Properties
Section titled “Properties”| Member | Description |
|---|---|
bool IsCancelled { get; } |
Whether the task was cancelled or finished. |
IsCancelled
Section titled “IsCancelled”public bool IsCancelled { get; }Whether the task was cancelled or finished.
Methods
Section titled “Methods”| Member | Description |
|---|---|
void Cancel() |
Stops the task. |
void Dispose() |
Same as ScheduledTask.Cancel. |
Cancel
Section titled “Cancel”public void Cancel()Stops the task.
Dispose
Section titled “Dispose”public void Dispose()Same as ScheduledTask.Cancel.