Disposes the reactive, providing a reason for debug tracing
Returns true if Reactive is disposed
Subscribes to a reactive. Receives
data as well as signals. Use onValue
if you
just care about values.
Return result unsubscribes.
const unsub = someReactive.on(msg => {
// Do something with msg.value
});
unsub(); // Unsubscribe
Subscribes to a reactive's values. Returns a function that unsubscribes.
Changes to
queue
are output as a responsive stream. The stream emits the full data of the queue (first item being the head of the queue) whenever there is an enqueue, remove or clear operation.@param queue @returns