Open andrewgazelka opened 4 months ago
&World
might be doable, but &mut World
within a handler would lead to unsoundness. It would be possible to send an event for the currently running handler, causing mutable aliasing. You could also do things like remove handlers which would invalidate the iterator over the current HandlerList
.
Pros
Cons
&World
or&mut World
running outside of a system.