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.