Consider the following events:
1) you have a list of systems
2) you schedule said systems in a loop, and begin the loop
3) you cancel the loop by disconnecting the events
4) you restart the loop with a new set of systems
Currently, hook state for systems which are not included in step (4) lingers around, since the cleanup routine was never called for them. It'd be nice if there was a way to clean up all remaining hooks after a loop is terminated. This is useful for hot reloading.
Consider the following events: 1) you have a list of systems 2) you schedule said systems in a loop, and begin the loop 3) you cancel the loop by disconnecting the events 4) you restart the loop with a new set of systems
Currently, hook state for systems which are not included in step (4) lingers around, since the cleanup routine was never called for them. It'd be nice if there was a way to clean up all remaining hooks after a loop is terminated. This is useful for hot reloading.