An efficient queue data-structure.
An efficient queue data-structure.
An efficient queue data-structure.
On top of the JVM it is backed by a java.util.concurrent.ConcurrentLinkedQueue
so it can be used in a multi-threading context. On top of Scala.js / Javascript
it is backed by a scala.collection.mutable.Queue
.
Contrary to Scala best-practices, the poll()
method that pulls elements from our
queue is returning null
in case the queue is empty.
An efficient queue data-structure.
On top of the JVM it is backed by a
java.util.concurrent.ConcurrentLinkedQueue
so it can be used in a multi-threading context. On top of Scala.js / Javascript it is backed by ascala.collection.mutable.Queue
.Contrary to Scala best-practices, the
poll()
method that pulls elements from our queue is returningnull
in case the queue is empty.