The actor type that can subscribe to the sub.
The input type of an actor.
The test type of an actor.
The output type of an actor.
All enumerable properties from the args
object are inherited to this bus.
Arguments object
Protected
Readonly
actionProtected
Readonly
actorProtected
Readonly
actorsProtected
Readonly
actorsProtected
Readonly
dependencyReadonly
nameThe name for this bus.
Protected
Readonly
observersProtected
getProtected
getPublish an action to all actors in the bus to test if they can run the action.
An action to publish
An array of reply objects. Each object contains a reference to the actor, and a promise to its Actor#test result.
Subscribe the given actor to the bus. After this, the given actor can be unsubscribed from the bus by calling Bus#unsubscribe.
An actor that is subscribed multiple times will exist that amount of times in the bus.
The actor to subscribe.
Subscribe the given observer to the bus. After this, the given observer can be unsubscribed from the bus by calling Bus#unsubscribeObserver.
An observer that is subscribed multiple times will exist that amount of times in the bus.
The observer to subscribe.
Unsubscribe the given actor from the bus.
An actor that is subscribed multiple times will be unsubscribed only once.
The actor to unsubscribe
If the given actor was successfully unsubscribed, otherwise it was not subscribed before.
Unsubscribe the given observer from the bus.
An observer that is subscribed multiple times will be unsubscribed only once.
The observer to unsubscribe.
If the given observer was successfully unsubscribed, otherwise it was not subscribed before.
A bus that indexes identified actors, so that actions with a corresponding identifier can be published more efficiently.
Multiple actors with the same identifier can be subscribed.
If actors or actions do not have a valid identifier, then this will fallback to the normal bus behaviour.
See
Bus