put

abstract suspend fun put(e: E)

Inserts the specified element into this queue, waiting if necessary for space to become available.

Parameters

e

the element to add

Throws

if interrupted while waiting

if the class of the specified element prevents it from being added to this queue

if the specified element is null

if some property of the specified element prevents it from being added to this queue