Functional suite · 26 cases
The complete event lifecycle.
Registration order, payload identity, wildcard priority, one-shot behavior, removal, reset, and fluent composition.
Complete Functional inventory
26- on exposes the registered handler in list
- on preserves registration order in list
- duplicate registrations remain visible as separate entries
- emit runs a registered handler synchronously
- emit runs handlers in registration order
- emit forwards every payload argument by identity
- handlers run without an emitter-bound this value
- once runs a handler exactly once
- on with an explicit false once flag remains persistent
- on with an explicit true once flag matches once
- wildcard handlers receive the emitted type before payloads
- wildcard handlers run before typed handlers
- multiple wildcard handlers retain registration order
- once supports wildcard subscriptions
- wildcard handlers are exposed under the stable symbol
- off removes a matching handler
- off removes every duplicate registration of a handler
- off leaves nonmatching handlers registered
- off with a wildcard handler removes an event type
- off defaults the handler argument to wildcard removal
- off defaults the event type to wildcard subscriptions only
- off removes one wildcard handler without touching typed handlers
- reset removes typed and wildcard registrations
- emitting an unknown type does not run other typed handlers
- all public mutators support fluent chaining
- the same function can be once and persistent independently