Skip to content

Commit 0fe62b1

Browse files
committed
improve Scheduler#cancel documentation
1 parent e16b9d4 commit 0fe62b1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

reference.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ scheduler:runRepeating(handler: (BukkitRunnable) -> void, delay: number, period:
6060
-- @param period Interval in ticks between executions
6161
scheduler:runRepeatingAsync(handler: (BukkitRunnable) -> void, delay: number, period: number): BukkitTask
6262

63-
--- Cancels a task with the specified identifier.
63+
--- Cancels the provided task.
64+
-- @param taskId The id of the tas to cancel
65+
-- @param runnable The runnable instance of the task to cancel
6466
-- @param task The task to cancel
65-
scheduler:cancel(task: number | runnable: BukkitRunnable | task: BukkitTask): void
67+
scheduler:cancel(taskId: number | runnable: BukkitRunnable | task: BukkitTask): void
6668
```

0 commit comments

Comments
 (0)