function addStarListener<T, A>(listener): (dispatcher) => Effect<TinyEventDispatcher<T, A>, never, never>;
Add a wildcard listener for all possible events to the given TinyEventDispatcher
.
Adding a given wildcard listener function reference is an idempotent operation. That is to say, irrespective of how many times a given wildcard listener is added it will only be triggered once.
• T
The possible event types that can be received
• A
The type of the event data which can be received
• listener: TinyEventListener
<T
, A
>
The listener function
Function
TinyEventDispatcher
value• dispatcher: TinyEventDispatcher
<T
, A
>
The TinyEventDispatcher
to add the listener to
Effect
<TinyEventDispatcher
<T
, A
>, never
, never
>