ConcurrentQueue

expect class ConcurrentQueue<T : Any>

A FIFO queue, safe to fill from concurrent producers under the platform's concurrency model.

actual class ConcurrentQueue<T : Any>

Constructors

Link copied to clipboard
expect constructor()
constructor()

Functions

Link copied to clipboard
expect fun clear()

Removes all elements from the queue.

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

Appends element to the tail of the queue.

actual operator fun plusAssign(element: T)
Link copied to clipboard
expect fun poll(): T?

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

actual fun poll(): T?