https://github.com/y785/moe-scheduler
A simple tick-based task/event scheduler.
https://github.com/y785/moe-scheduler
java
Last synced: 10 months ago
JSON representation
A simple tick-based task/event scheduler.
- Host: GitHub
- URL: https://github.com/y785/moe-scheduler
- Owner: y785
- License: mit
- Created: 2019-10-02T20:03:21.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-09-22T09:26:11.000Z (almost 6 years ago)
- Last Synced: 2025-07-27T07:32:19.555Z (12 months ago)
- Topics: java
- Language: Java
- Homepage:
- Size: 104 KB
- Stars: 6
- Watchers: 1
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Moe Scheduler
A simple tick-based event scheduler. Used for synchronizing game server events.
Goal is to update actors with a time offset to determine proper event timings.
Repeating tasks can't be registered from the scheduler through lambda.
Repeating tasks added this way would be memory leaked, since they are never removed.
By default, all tasks are removed based on the ``isEventDone()``, which returns true after any task's ``update(long: delta)`` is successfully run. Registration of always-on tasks can be done through ``registerRepeating``. There is currently no way to remove these tasks except for ``remove(Predicate)``
### Maven
```
moe.maple
scheduler
2.1.1
```