Lock-free queue for multiple producers and one consumer.

Constructor

new ()

Creates a new instance.

Methods

pop ():T

Removes the first element out of queue and returns it.

Returns:

The first element in the queue.

push (val:T):Void

Adds new element to the end of queue.

Parameters:

val

Element to add.