Get the number of subscribers for a topic.
Checks if instance has been disposed.
True if disposed.
Publish a value to a topic asynchronously. All listeners are invoked in the order they were added.
The topic to publish.
Arguments to pass to listeners.
True if any listeners exist for this topic.
Set instance to initial state
Subscribe a function to a topic.
The topic to subscribe to.
The callback function to invoke when published.
Optionalcontext: any = undefinedOptional this context for the callback.
A function that unsubscribes this listener.
Subscribe a function to a topic only once. Listener is removed before the first invocation.
The topic to subscribe to.
The callback function.
Optionalcontext: any = undefinedOptional this context for the callback.
A function that unsubscribes this listener.
Unsubscribe a specific function from a topic. Matches by function reference and optional context.
The topic to unsubscribe from.
The listener function.
Optionalcontext: any = undefinedOptional this context.
True if the listener was found and removed.
Dispose the instance, removing all topics and listeners.