A Cluster is just a wrapper, a group, of two or more ActiveJS fundamental constructs,
Actions, or even
It creates a master
Observable of the combined value of its members by merging all the provided Observable constructs.
Whenever any of these wrapped constructs emits a value,
Cluster emits a new combined-value.
See https://docs.activejs.dev/fundamentals/cluster for more details.
Combination of global-options GlobalUnitConfig and the options passed on instantiation.
On-demand observable events. See https://docs.activejs.dev/guides/events for more details.
An Observable to observe future values, unlike the default Observable it doesn't replay when subscribed to, rather it waits for the next value.
The items part of this cluster, stored as key-value pairs.
A counter to keep track of how many times has a Unit, System, Action or Cluster emitted.
Number of times a Unit, System, Action or Cluster has emitted.
The count of items part of this cluster.
Combined value of the items part of this Cluster.
Creates a new Observable using the default Observable as source. Use this to conceal other aspects of a Unit, System, Action or Cluster except the Observable part.
An Observable with the value of a Unit, System, Action or Cluster.
A helper method that creates a stream by subscribing to the Observable returned by the param
Ideally the callback function creates an Observable by applying
Just know that you should catch the error in a sub-pipe (ie: do not let it propagate to the main-pipe), otherwise as usual the stream will stop working, and will not react on any further emissions.
A callback function that should return an Observable.
To manually re-emit the last emitted value again.
Converts the value to JSON string, using
Performs the specified action for each child of the Cluster items.
It's a drop-in replacement for the
A function that accepts up to three arguments. forEvery calls the callbackFn function one time for each element in the list.
An object to which this keyword can refer in the callbackFn function. If thisArg is omitted, undefined is used as this value.
Select a child by providing its key.
The key of the child.