Add comment

This commit is contained in:
AJ Ferguson 2024-04-24 04:59:22 -04:00
parent c69baf087c
commit 7000b646c6
1 changed files with 2 additions and 0 deletions

View File

@ -1167,6 +1167,8 @@ public class GeyserSession implements GeyserConnection, GeyserCommandSource {
/**
* Schedules a task and prints a stack trace if an error occurs.
* <p>
* The task will not run if the session is closed.
*/
public ScheduledFuture<?> scheduleInEventLoop(Runnable runnable, long duration, TimeUnit timeUnit) {
return eventLoop.schedule(() -> {