LitDev Extension API
LDQueue
This object provides a way of storing values.
It is similar to a stack, except that is is fist-in first-out, like a queue.
You can enqueue (add) a value to the end of the queue and dequeue (remove) the first value at the front of the queue.
You can only enqueue and dequeue the values one by one.
Dequeue | Enqueue | GetCount |
Dequeue(queueName)
Remove (and get) the value from the front of the specified queue.
queueName The name of the queue.
returns The value from the queue.
Enqueue(queueName,value)
Adds a value to the end of the specified queue.
queueName The name of the queue.
value The value to enqueue.
GetCount(queueName)
Gets the count of items in the specified queue.
queueName The name of the queue.
returns The number of items in the specified queue.