take

open suspend override fun take(): E

Retrieves and removes the head of this queue, waiting if necessary until an element becomes available.

Return

the head of this queue

Throws

if interrupted while waiting