Skip to Content
⚠ Under Construction
ReferenceC++ APITask

endstone::Task

Represents a task being executed by the scheduler.

Functions:

cancel

void cancel()

Attempts to cancel this task.

getOwner

Plugin *getOwner() const

Returns the Plugin that owns this task.

Returns:

The Plugin that owns the task

getTaskId

TaskId getTaskId() const

Returns the taskId for the task.

Returns:

Task id number

isCancelled

bool isCancelled() const

Returns true if this task has been cancelled.

Returns:

true if the task has been cancelled

isSync

bool isSync() const

Returns true if the Task is a sync task.

Returns:

true if the task is run by server thread

Last updated on