Commit Graph

16 Commits

Author SHA1 Message Date
Samuel 2442f14b3d
Add a Scheduler::scheduleTask with period supplier AND delay (#2082) 2024-04-09 17:25:17 -04:00
DeidaraMC a9f6d9f02b
feat: add TICK_END execution type to scheduler api (#2045)
* feat: implement TICK_END scheduler ExecutionType

* feat: add TICK_END scheduler ExecutionType

* fix: call processTickEnd on entity/instances, SchedulerImpl code cleanup

* deprecate ExecutionType#SYNC, replace with TICK_START

* chore: update scheduler test

* chore: scheduleEndOfTick cleanup

---------

Co-authored-by: iam <iam4722202468@users.noreply.github.com>
2024-03-30 23:51:08 -04:00
TheMode 9717e54aac Revamped scheduling API (#535) 2022-01-10 16:51:21 +01:00
Matthew 75964f87b4 Merge `Task#scheduleForShutdown` into `Task#schedule` 2021-08-26 11:22:08 -04:00
Matthew 2674ca933e Move functionality from `TaskBuilder#schedule` to `Task#schedule` and `Task#scheduleForShutdown` 2021-08-26 11:22:08 -04:00
jglrxavpok c8e311855f Auto-unschedule and cancel tasks from extensions 2021-02-03 17:51:14 +01:00
Tyan 855c8af455 Added ExceptionManager for custom exception handling 2021-01-20 11:43:45 +01:00
Felix Cravic d61a598c94 Prevent players being disconnected two times during a clean stop, also made shutdown tasks being executed in a single thread 2020-12-02 21:28:36 +01:00
themode cf6fbd3d34 Cleanup 2020-11-06 22:58:38 +01:00
themode fc4501501b Fix tasks not being canceled properly + annotations 2020-11-06 22:13:52 +01:00
themode 660a67e53e English fix 2020-10-15 21:16:31 +02:00
themode 88ef4eb3c0 Comments 2020-10-12 03:18:02 +02:00
TheMode 4a96ef6224 Use Map instead of List to store tasks 2020-10-09 06:08:27 +02:00
Articdive 856d328668
Small optimizations. 2020-08-08 13:41:25 +02:00
R0bbyYT 4ad4054fce Improve the scheduler's 2020-07-29 04:28:01 +02:00
Felix Cravic 7daac5e610 Package rename to net.minestom.server 2020-04-24 03:25:58 +02:00