scalaz.stream

async

package async

Source
package.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. async
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    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 scalaz.stream.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]

    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

  4. package mutable

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

    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]

    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]

    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 topic[A](source: Process[Task, A] = halt, haltOnSource: Boolean = false)(implicit S: Strategy): Topic[A]

    Returns a topic, that can create publisher (sink) and subscriber (source) processes that can be used to publish and subscribe asynchronously.

    Returns a topic, that can create publisher (sink) and subscriber (source) processes that can be used to publish and subscribe asynchronously. Please see Topic for more info.

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

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

    Creates an unbounded queue.

    Creates an unbounded queue. see scalaz.stream.async.mutable.Queue for more

  11. def writerTopic[W, I, O](w: Writer1[W, I, O])(source: Process[Task, I] = halt, haltOnSource: Boolean = false)(implicit S: Strategy): WriterTopic[W, I, O]

    Returns Writer topic, that can create publisher(sink) of I and subscriber with signal of W values.

    Returns Writer topic, that can create publisher(sink) of I and subscriber with signal of W values. For more info see WriterTopic. Note that when source ends, the topic does not terminate

Deprecated Value Members

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

    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