geforkt von Mirrors/Paper
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" By: Wesley Wolfe <weswolf@aol.com>
Dieser Commit ist enthalten in:
Ursprung
fbc20e59c1
Commit
eaf21d744e
@ -51,7 +51,9 @@ public interface BukkitScheduler {
|
|||||||
* @param task Task to be executed
|
* @param task Task to be executed
|
||||||
* @param delay Delay in server ticks before executing task
|
* @param delay Delay in server ticks before executing task
|
||||||
* @return Task id number (-1 if scheduling failed)
|
* @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);
|
public int scheduleAsyncDelayedTask(Plugin plugin, Runnable task, long delay);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -64,7 +66,9 @@ public interface BukkitScheduler {
|
|||||||
* @param plugin Plugin that owns the task
|
* @param plugin Plugin that owns the task
|
||||||
* @param task Task to be executed
|
* @param task Task to be executed
|
||||||
* @return Task id number (-1 if scheduling failed)
|
* @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);
|
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 delay Delay in server ticks before executing first repeat
|
||||||
* @param period Period in server ticks of the task
|
* @param period Period in server ticks of the task
|
||||||
* @return Task id number (-1 if scheduling failed)
|
* @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);
|
public int scheduleAsyncRepeatingTask(Plugin plugin, Runnable task, long delay, long period);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren