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.
The test side data type.
All enumerable properties from the args
object are inherited to this bus.
Arguments object
Protected
Readonly
actorsProtected
Readonly
dependencyReadonly
nameThe name for this bus.
Protected
Readonly
observersPublish 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 publish-subscribe bus for sending actions to actors to test whether or not they can run an action.
This bus does not run the action itself, for that a Mediator can be used.
See