Key of the map.
Type of the single subscriber.
Removes all subscribers sets.
Returns a subscribers set for specified key. Returns undefined
if there's
no subscribers set for that key.
Returns a list of all subscribers from all subscribers sets.
A value specifying if duplicates of subscribers are
allowed. When set to false
additional step of filtering duplicates out is
performed before returning.
Returns a value whether there is a subscribers set for specified key.
Adds provided subscriber to the subscribers set specified with by key
argument.
Unsubscribes provided subscriber if already subscribed to specified key.
true
if unsubscribed existing subscriber or false
if there was
no subscriber to unsubscribe.
Generated using TypeDoc
This class is a generic map of generic subscribers sets (
SubscribersSet<T>
). This is an encapsulation ofMap<T, SubscribersSet<U>>
.import { SubscribersMap } from '@hubhazard/core';