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
Keys to follow down from the action object. The value at the location following these keys should be a string or be undefined.
Keys to follow down from the actor object. The value at the location following these keys should be a string, a string array, or undefined. If the value is a string array, all strings will be registered as keys that map to the actor.
The name for this bus.
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 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