-
Notifications
You must be signed in to change notification settings - Fork 19
Scheduler
Hakan Kargın edited this page Apr 19, 2022
·
3 revisions
This feature allows you to easily create sync/async schedulers.
HCore.syncScheduler().every(1) // creates an sync scheduler which works on every 1 tick
.run(() -> System.out.println("This works on every 1 tick.")); // trigger
HCore.asyncScheduler().every(1) // creates an async scheduler which works on every 1 tick
.run(() -> System.out.println("This works on every 1 tick. That's async")); // trigger