Package one.tranic.t.base.scheduler
Interface Task<C>
public interface Task<C>
-
Method Details
-
cancel
void cancel() -
isCancelled
boolean isCancelled() -
getOwner
C getOwner() -
isRepeatingTask
boolean isRepeatingTask()Returns whether this task executes on a fixed period, as opposed to executing only once.- Returns:
- whether this task executes on a fixed period, as opposed to executing only once.
-
isSynchronized
boolean isSynchronized()Returns true if the Task is a sync task.In folia, it will always be false
- Returns:
- true if the task is run by main thread
-