event bus: fix bug
event bus: fix bug: a task in smol-software-harbor (Harbor dataset). A handler that unsubscribes itself while an event is delivered (a "once" handler) makes the bus in src/bus.lua skip the next handler, because emit iterates over the live list while it shrinks. Make emit behave as its comment…
The task
A handler that unsubscribes itself while an event is delivered (a "once" handler) makes the bus in `src/bus.lua` skip the next handler, because `emit` iterates over the live list while it shrinks. Make `emit` behave as its comment says: every handler subscribed when the emit starts is called exactly once, in order,…
Part of efederici/smol-software-harbor.