An open API service indexing awesome lists of open source software.

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.

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

```