supyrb / signals

❇ A typesafe, lightweight messaging system for Unity with UPM Support.

Home Page:https://github.com/supyrb/signals

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deterministic sorting for same order

JohannesDeml opened this issue · comments

When adding a listener with the same order sort the listeners by their type

After some usage of the signals library I didn't hit that necessity so far.

The sort order introduces a good tool to fight any order problems. Listeners that are in the same order group should not have any dependency on one another from their execution. Therefore I don't see the performance impact of sorting the listeners by their type small enough to support sorting by type.

Closing this for now, if anyone actually needs that functionality, please post here and I will reopen.