Alternative to #39. Uses an OrderedDict instead of a list for storing events, so that we can key them by unwrapped functions.
Note that the listeners method no longer returns the raw events object but a list of its items as a snapshot; in other words, you can't mutate the listeners list directly anymore.
Alternative to #39. Uses an OrderedDict instead of a list for storing events, so that we can key them by unwrapped functions.
Note that the
listeners
method no longer returns the raw events object but a list of its items as a snapshot; in other words, you can't mutate the listeners list directly anymore.