Learn R Programming

epivizr (version 1.4.6)

Queue-class: A Queue

Description

A first-in-first-out data structure. Used by EpivizServer-class objects to queue requests.

Arguments

Fields

items
Items stored in queue

Methods

push(item): Push item into queue
pop(): Pop item on top of queue
peek(): Return but not pop item on top of queue.
empty(): Empty the queue

See Also

EpivizServer-class

Examples

Run this code
  theQ <- epivizr:::Queue$new()
  theQ$push("a")
  theQ$pop()

Run the code above in your browser using DataLab