zakarumych / edict

Other
82 stars 6 forks source link

Is it possible to avoid reschedule if the same schedule is being run again. Without change. #23

Closed navneetankur closed 1 month ago

navneetankur commented 1 month ago

https://github.com/zakarumych/edict/blob/923c0379242734171f9c63814787086b14d521f5/src/scheduler.rs#L328 calls reschedule on every run. Is it possible to avoid it?

Moreover a minimal example about flow and task would be nice.

navneetankur commented 1 month ago

I see not. It actually seems to check that archtypes have changed before doing anything. And returns early if they have not. 😅

zakarumych commented 1 month ago

As you can see in the code, fn reschedule returns immediately if archetypes and systems didn't change.

navneetankur commented 1 month ago

Yeah thanks. Great work with library though. Also, you might want to add a description to repo.