offer

abstract fun offer(element: E): Boolean (source)

Platform and version requirements: JVM

Adds element into this queue if it is possible to do so immediately without violating capacity restrictions and returns true. Otherwise, it returns false immediately or throws exception if the channel isClosedForSend (see close for details).