summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorWesley Wolfe <weswolf@aol.com>2012-12-05 13:18:47 -0600
committerWesley Wolfe <weswolf@aol.com>2012-12-05 13:18:47 -0600
commit516bcd8eb75116c9f8a15f6cd6753b02f91ed087 (patch)
tree874402b5b85d5adeffd68fbd889274876db84470 /src/main
parent016217f791782f3daebf60f4745cfc481c59f379 (diff)
downloadbukkit-516bcd8eb75116c9f8a15f6cd6753b02f91ed087.tar
bukkit-516bcd8eb75116c9f8a15f6cd6753b02f91ed087.tar.gz
bukkit-516bcd8eb75116c9f8a15f6cd6753b02f91ed087.tar.lz
bukkit-516bcd8eb75116c9f8a15f6cd6753b02f91ed087.tar.xz
bukkit-516bcd8eb75116c9f8a15f6cd6753b02f91ed087.zip
Deprecate the scheduleAsync methods.
The name is misleading, as it can be misconstrued to mean "a sync" instead of properly understanding it as "an async"
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/bukkit/scheduler/BukkitScheduler.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/scheduler/BukkitScheduler.java b/src/main/java/org/bukkit/scheduler/BukkitScheduler.java
index 86b0db97..012e777e 100644
--- a/src/main/java/org/bukkit/scheduler/BukkitScheduler.java
+++ b/src/main/java/org/bukkit/scheduler/BukkitScheduler.java
@@ -51,7 +51,9 @@ public interface BukkitScheduler {
* @param task Task to be executed
* @param delay Delay in server ticks before executing task
* @return Task id number (-1 if scheduling failed)
+ * @deprecated This name is misleading, as it does not schedule "a sync" task, but rather, "an async" task
*/
+ @Deprecated
public int scheduleAsyncDelayedTask(Plugin plugin, Runnable task, long delay);
/**
@@ -64,7 +66,9 @@ public interface BukkitScheduler {
* @param plugin Plugin that owns the task
* @param task Task to be executed
* @return Task id number (-1 if scheduling failed)
+ * @deprecated This name is misleading, as it does not schedule "a sync" task, but rather, "an async" task
*/
+ @Deprecated
public int scheduleAsyncDelayedTask(Plugin plugin, Runnable task);
/**
@@ -79,7 +83,9 @@ public interface BukkitScheduler {
* @param delay Delay in server ticks before executing first repeat
* @param period Period in server ticks of the task
* @return Task id number (-1 if scheduling failed)
+ * @deprecated This name is misleading, as it does not schedule "a sync" task, but rather, "an async" task
*/
+ @Deprecated
public int scheduleAsyncRepeatingTask(Plugin plugin, Runnable task, long delay, long period);
/**