SimpleQueue

trait SimpleQueue[F[_], T]
class Object
trait Matchable
class Any
class SyncQueue[T]

Value members

Abstract methods

def offer(t: T): Unit

Eagerly adds the given item to the queue.

Eagerly adds the given item to the queue.

def poll: F[T]

Takes an element from the queue or suspends, until one is available. May be eager or lazy, depending on F.

Takes an element from the queue or suspends, until one is available. May be eager or lazy, depending on F.