mikesol / purescript-hyrule

Events, behaviors, and uneventful misbehaving
BSD 3-Clause "New" or "Revised" License
15 stars 4 forks source link

In VBus, iterator should iterate over values instead of keys #8

Closed mikesol closed 1 year ago

mikesol commented 2 years ago

Currently, subscriptions are iterated over in terms of keys, which works until a subscription unsubscribes another subscription, at which point the key no longer points to anything. To fix this, a values array should be used instead, and that way there will be no spurious lookups.

mikesol commented 1 year ago

Fixed in current master