ConcurrentQueue

A thread-safe FIFO queue, safe to fill from concurrent producers.

On platforms without multithreading, a plain list is a valid implementation.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun clear()

Removes all elements from the queue.

Link copied to clipboard
operator fun plusAssign(element: T)

Appends element to the tail of the queue.

Link copied to clipboard
fun poll(): T?

Removes and returns the head of the queue, or null if the queue is empty.