Class endstone::Task¶
Represents a task being executed by the scheduler.
#include <endstone/scheduler/task.h>
Public Functions¶
Type | Name |
---|---|
virtual void | cancel () = 0 |
virtual Plugin * | getOwner () const = 0 |
virtual TaskId | getTaskId () const = 0 |
virtual bool | isCancelled () const = 0 |
virtual bool | isSync () const = 0 |
virtual | ~Task () = default |
Public Functions Documentation¶
function cancel¶
Attempts to cancel this task.
function getOwner¶
Returns the Plugin that owns this task.
Returns:
The Plugin that owns the task
function getTaskId¶
Returns the taskId for the task.
Returns:
Task id number
function isCancelled¶
Returns true if this task has been cancelled.
Returns:
true if the task has been cancelled
function isSync¶
Returns true if the Task is a sync task.
Returns:
true if the task is run by server thread
function ~Task¶
The documentation for this class was generated from the following file include/endstone/scheduler/task.h