RefQueueExt<T> extension

Reactive extensions for a Ref that stores a Queue.

Every mutation will call notifyChange() to ensure reactivity updates. The API mirrors the native Queue mutation methods.

on

Methods

add(T value) → void

Available on Ref<Queue<T>>, provided by the RefQueueExt extension

Adds an element to the end of the queue.
addFirst(T value) → void

Available on Ref<Queue<T>>, provided by the RefQueueExt extension

Adds an element to the front of the queue.
clear() → void

Available on Ref<Queue<T>>, provided by the RefQueueExt extension

Clears all elements in the queue.
removeFirst() → T

Available on Ref<Queue<T>>, provided by the RefQueueExt extension

Removes and returns the first element.
removeLast() → T

Available on Ref<Queue<T>>, provided by the RefQueueExt extension

Removes and returns the last element.