Package

org.specs2.codata

async

Permalink

package async

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. async
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

  1. def boundedQueue[A](max: Int, recover: Boolean = false)(implicit S: Strategy): Queue[A]

    Permalink

    Creates a bounded queue that is bound by supplied max size bound.

    Creates a bounded queue that is bound by supplied max size bound. Please see org.specs2.codata.async.mutable.Queue for more details.

    max

    The maximum size of the queue (must be > 0)

    recover

    Flag controlling automatic dequeue error recovery semantics. When false (the default), data may be lost in the event of an error during dequeue. When true, data will never be lost on dequeue, but concurrent dequeue processes may see data out of order under certain error conditions.

  2. def circularBuffer[A](size: Int)(implicit S: Strategy): Queue[A]

    Permalink

    Builds a queue that functions as a circular buffer.

    Builds a queue that functions as a circular buffer. Up to size elements of type A will accumulate on the queue and then it will begin overwriting the oldest elements. Thus an enqueue process will never wait.

    size

    The size of the circular buffer (must be > 0)

  3. package immutable

    Permalink
  4. package mutable

    Permalink
  5. def signalOf[A](initialValue: A)(implicit S: Strategy): Signal[A]

    Permalink

    Creates a new continuous signal which may be controlled asynchronously, and immediately sets the value to initialValue.

  6. def signalUnset[A](implicit S: Strategy): Signal[A]

    Permalink

    Create a new continuous signal which may be controlled asynchronously.

    Create a new continuous signal which may be controlled asynchronously. Note that this would block any resulting processes (discrete, continuous) until any signal value is set.

  7. def toSignal[A](source: Process[Task, A])(implicit S: Strategy): Signal[A]

    Permalink

    Converts discrete process to signal.

    Converts discrete process to signal. Note that resulting signal will terminate as soon as source terminates, propagating reason for the termination to all downstream processes failure

    source

    discrete process publishing values to this signal

  8. def unboundedQueue[A](recover: Boolean)(implicit S: Strategy): Queue[A]

    Permalink
  9. def unboundedQueue[A](implicit S: Strategy): Queue[A]

    Permalink

    Creates an unbounded queue.

    Creates an unbounded queue. see specs2.codata.async.mutable.Queue for more

Deprecated Value Members

  1. def signal[A](implicit S: Strategy): Signal[A]

    Permalink

    Create a new continuous signal which may be controlled asynchronously.

    Create a new continuous signal which may be controlled asynchronously. Note that this would block any resulting processes (discrete, continuous) until any signal value is set.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.7.0) Use signalOf or signalUnset instead

Inherited from AnyRef

Inherited from Any

Ungrouped