Skip to content

jaguardev/node-runner-runner-queue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Queue

Class representing a Queue

Kind: global class

queue.dequeue() ⇒ *

Removes and returns an object from the head of the Queue

Kind: instance method of Queue
Returns: * - object from the head of the Queue

queue.enqueue(object)

Adds an object to the tail of the Queue

Kind: instance method of Queue

Param Type Description
object * to be added to the tail of the Queue

queue.peek() ⇒ *

Returns an object from the head of the Queue, but does not remove it

Kind: instance method of Queue
Returns: * - object from the head of the Queue

queue.clear()

Returns all objects from the Queue

Kind: instance method of Queue

queue.contains(object)

Tests if an object in the Queue

Kind: instance method of Queue

Param Type Description
object Boolean to look

queue.size() ⇒ Number

Return a size of the Queue

Kind: instance method of Queue
Returns: Number - size of the Queue

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published