mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
add function isCurrentlyRunning(int taskId);
returns if the given task is currently running.
This commit is contained in:
parent
a4cca21350
commit
e345a982eb
1 changed files with 14 additions and 0 deletions
|
@ -104,4 +104,18 @@ public interface BukkitScheduler {
|
|||
*/
|
||||
public void cancelAllTasks();
|
||||
|
||||
/**
|
||||
* Is the task currently running.
|
||||
*
|
||||
* A repeating task might not be running currently, but will be running in the future.
|
||||
* A task that has finished, and does not repeat, will not be running ever again.
|
||||
*
|
||||
* Explicitly, a task is running if there exists a thread for it, and that thread is alive.
|
||||
*
|
||||
* @param taskId the task to check.
|
||||
*
|
||||
* @return if the task is currently running.
|
||||
*/
|
||||
public boolean isCurrentlyRunning(int taskId);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue