Package

scalaz

stream

Permalink

package stream

Source
package.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. stream
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. sealed trait Cause extends AnyRef

    Permalink

    Defines termination cause for the process.

    Defines termination cause for the process. Cause is always wrapped in Halt and controls process flow.

  2. type Channel[+F[_], -I, O] = Process[F, (I) ⇒ F[O]]

    Permalink

    An effectful channel, to which we can send values and get back responses.

    An effectful channel, to which we can send values and get back responses. Modeled as a source of effectful functions.

  3. final class ChannelSyntax[F[_], I, O] extends AnyVal

    Permalink
  4. final case class Exchange[I, W](read: Process[Task, I], write: Sink[Task, W]) extends Product with Serializable

    Permalink

    Exchange represents interconnection between two systems.

    Exchange represents interconnection between two systems. So called remote is resource from which program receives messages of type I and can send to it messages of type O.

    Typically this can be sort of connection to external system, like for example tcp connection to internet server.

    Exchange allows combining this pattern with Processes and allows to use different combinators to specify the Exchange behaviour.

    Exchange is currently specialized to scalaz.concurrent.Task

    I

    values read from remote system

    W

    values written to remote system

    read

    Process reading values from remote system

    write

    Process writing values to remote system

  5. sealed trait Process[+F[_], +O] extends Process1Ops[F, O] with TeeOps[F, O]

    Permalink

    An effectful stream of O values.

    An effectful stream of O values. In between emitting values a Process may request evaluation of F effects. A Process[Nothing,A] is a pure Process with no effects. A Process[Task,A] may have Task effects. A Process halts due to some Cause, generally End (indicating normal termination) or Error(t) for some t: Throwable indicating abnormal termination due to some uncaught error.

  6. type Process0[+O] = Process[Nothing, O]

    Permalink
  7. type Process1[-I, +O] = Process[Is, O]

    Permalink

    A single input stream transducer.

    A single input stream transducer. Accepts input of type I, and emits values of type O.

  8. final class Process1Syntax[I, O] extends AnyVal

    Permalink
  9. sealed trait ReceiveY[+A, +B] extends AnyRef

    Permalink
  10. type Sink[+F[_], -O] = Process[F, (O) ⇒ F[Unit]]

    Permalink

    An effectful sink, to which we can send values.

    An effectful sink, to which we can send values. Modeled as a source of effectful functions.

  11. final class SinkSyntax[F[_], I] extends AnyVal

    Permalink
  12. final class SinkTaskSyntax[I] extends AnyVal

    Permalink
  13. type Tee[-I, -I2, +O] = Process[T, O]

    Permalink

    A stream transducer that can read from one of two inputs, the 'left' (of type I) or the 'right' (of type I2).

    A stream transducer that can read from one of two inputs, the 'left' (of type I) or the 'right' (of type I2). Process1[I,O] <: Tee[I,I2,O].

  14. final class TeeSyntax[I, I2, O] extends AnyVal

    Permalink

    This class provides infix syntax specific to Tee.

    This class provides infix syntax specific to Tee. We put these here rather than trying to cram them into Process itself using implicit equality witnesses. This doesn't work out so well due to variance issues.

  15. type TeeW[+W, -I, -I2, +O] = Process[T, \/[W, O]]

    Permalink

    A Tee that writes values of type W.

  16. type Writer[+F[_], +W, +O] = Process[F, \/[W, O]]

    Permalink

    A Writer[F,W,O] is a Process[F, W \/ O].

    A Writer[F,W,O] is a Process[F, W \/ O]. See WriterSyntax for convenience functions for working with either the written values (the W) or the output values (the O).

    This is useful for logging or other situations where we want to emit some values 'on the side' while doing something else with the main output of a Process.

  17. type Writer1[+W, -I, +O] = Process[Is, \/[W, O]]

    Permalink

    A Process1 that writes values of type W.

  18. final class WriterSyntax[F[_], W, O] extends AnyVal

    Permalink

    Infix syntax for working with Writer[F,W,O].

    Infix syntax for working with Writer[F,W,O]. We call the W parameter the 'write' side of the Writer and O the 'output' side. Many method in this class end with either W or O, depending on what side they operate on.

  19. final class WriterTaskSyntax[W, O] extends AnyVal

    Permalink
  20. type Wye[-I, -I2, +O] = Process[Y, O]

    Permalink

    A stream transducer that can read from one of two inputs, non-deterministically.

  21. trait WyeOps[+O] extends AnyRef

    Permalink
    Attributes
    protected
  22. final class WyeSyntax[I, I2, O] extends AnyVal

    Permalink

    This class provides infix syntax specific to Wye.

    This class provides infix syntax specific to Wye. We put these here rather than trying to cram them into Process itself using implicit equality witnesses. This doesn't work out so well due to variance issues.

  23. type WyeW[+W, -I, -I2, +O] = Process[Y, \/[W, O]]

    Permalink

    A Wye that writes values of type W.

Value Members

  1. object Cause

    Permalink
  2. val DefaultScheduler: ScheduledExecutorService

    Permalink

    Scheduler used for timing processes.

    Scheduler used for timing processes. This thread pool shall not be used for general purpose Process or Task execution

  3. object Exchange extends Serializable

    Permalink
  4. object Process extends ProcessInstances

    Permalink
  5. object ReceiveY

    Permalink
  6. package async

    Permalink
  7. implicit val byteVectorSemigroupInstance: Semigroup[ByteVector]

    Permalink
  8. object channel

    Permalink
  9. object compress

    Permalink

  10. object hash

    Permalink

  11. object io

    Permalink

    Module of Process functions and combinators for file and network I/O.

  12. package nio

    Permalink
  13. object process1

    Permalink
  14. object sink

    Permalink
  15. object tcp

    Permalink
  16. object tee

    Permalink
  17. object text

    Permalink

    Module for text related processes.

  18. object time

    Permalink
  19. object udp

    Permalink
  20. object writer

    Permalink
  21. object wye

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped