scala.concurrent
trait QueueModule

[source: `scala/concurrent/QueueModule.scala`]

`` `trait` QueueModule[a]
  `extends` AnyRef

  Module for dealing with queues.

Type Summary
`abstract type` | t Type of queues.

Method Summary
`abstract def` | append (l : t, x : a) : t Append an element to a queue.
`abstract def` | extractFirst (l : t, p : (a) => Boolean) : Option[(a, t)] Extract an element satisfying a predicate from a queue.
`abstract def` | make : t Create an empty queue.

Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized

Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf

Type Details

`abstract` `type` t

  Type of queues.

Method Details

`abstract` `def` make : t

  Create an empty queue.

`abstract` `def` append(l : t, x : a) : t

  Append an element to a queue.

`abstract` `def` extractFirst(l : t, p : (a) => Boolean) : Option[(a, t)]

  Extract an element satisfying a predicate from a queue.