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.
constqueue = newQueueMutable(); constr = asResponsive(queue); r.onValue(v=> { // v is an array of values });
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