endstone::Task
Represents a task being executed by the scheduler.
Functions:
| Name | Description |
|---|---|
cancel | |
getOwner | |
getTaskId | |
isCancelled | |
isSync |
cancel
void cancel()Attempts to cancel this task.
getOwner
Plugin *getOwner() constReturns the Plugin that owns this task.
Returns:
The Plugin that owns the task
getTaskId
TaskId getTaskId() constReturns the taskId for the task.
Returns:
Task id number
isCancelled
bool isCancelled() constReturns true if this task has been cancelled.
Returns:
true if the task has been cancelled
isSync
bool isSync() constReturns true if the Task is a sync task.
Returns:
true if the task is run by server thread
Last updated on