package stream
- Source
- package.scala
- Alphabetic
- By Inheritance
- stream
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
sealed
trait
Cause
extends AnyRef
Defines termination cause for the process.
Defines termination cause for the process. Cause is always wrapped in
Haltand controls process flow. -
type
Channel[+F[_], -I, O] = Process[F, (I) ⇒ F[O]]
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.
- final class ChannelSyntax [F[_], I, O] extends AnyVal
-
final
case class
Exchange
[I, W](read: Process[Task, I], write: Sink[Task, W]) extends Product with Serializable
Exchange represents interconnection between two systems.
Exchange represents interconnection between two systems. So called remote is resource from which program receives messages of type
Iand can send to it messages of typeO.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
-
sealed
trait
Process
[+F[_], +O] extends Process1Ops[F, O] with TeeOps[F, O]
An effectful stream of
Ovalues.An effectful stream of
Ovalues. In between emitting values aProcessmay request evaluation ofFeffects. AProcess[Nothing,A]is a pureProcesswith no effects. AProcess[Task,A]may haveTaskeffects. AProcesshalts due to someCause, generallyEnd(indicating normal termination) orError(t)for somet: Throwableindicating abnormal termination due to some uncaught error. - type Process0[+O] = Process[Nothing, O]
-
type
Process1[-I, +O] = Process[Is, O]
A single input stream transducer.
A single input stream transducer. Accepts input of type
I, and emits values of typeO. - final class Process1Syntax [I, O] extends AnyVal
- sealed trait ReceiveY [+A, +B] extends AnyRef
-
type
Sink[+F[_], -O] = Process[F, (O) ⇒ F[Unit]]
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.
- final class SinkSyntax [F[_], I] extends AnyVal
- final class SinkTaskSyntax [I] extends AnyVal
-
type
Tee[-I, -I2, +O] = Process[T, O]
A stream transducer that can read from one of two inputs, the 'left' (of type
I) or the 'right' (of typeI2).A stream transducer that can read from one of two inputs, the 'left' (of type
I) or the 'right' (of typeI2).Process1[I,O] <: Tee[I,I2,O]. -
final
class
TeeSyntax
[I, I2, O] extends AnyVal
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 intoProcessitself using implicit equality witnesses. This doesn't work out so well due to variance issues. -
type
TeeW[+W, -I, -I2, +O] = Process[T, \/[W, O]]
A
Teethat writes values of typeW. -
type
Writer[+F[_], +W, +O] = Process[F, \/[W, O]]
A
Writer[F,W,O]is aProcess[F, W \/ O].A
Writer[F,W,O]is aProcess[F, W \/ O]. SeeWriterSyntaxfor convenience functions for working with either the written values (theW) or the output values (theO).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. -
type
Writer1[+W, -I, +O] = Process[Is, \/[W, O]]
A
Process1that writes values of typeW. -
final
class
WriterSyntax
[F[_], W, O] extends AnyVal
Infix syntax for working with
Writer[F,W,O].Infix syntax for working with
Writer[F,W,O]. We call theWparameter the 'write' side of theWriterandOthe 'output' side. Many method in this class end with eitherWorO, depending on what side they operate on. - final class WriterTaskSyntax [W, O] extends AnyVal
-
type
Wye[-I, -I2, +O] = Process[Y, O]
A stream transducer that can read from one of two inputs, non-deterministically.
-
trait
WyeOps
[+O] extends AnyRef
- Attributes
- protected
-
final
class
WyeSyntax
[I, I2, O] extends AnyVal
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 intoProcessitself using implicit equality witnesses. This doesn't work out so well due to variance issues. -
type
WyeW[+W, -I, -I2, +O] = Process[Y, \/[W, O]]
A
Wyethat writes values of typeW.
Value Members
-
val
DefaultScheduler: ScheduledExecutorService
Scheduler used for timing processes.
Scheduler used for timing processes. This thread pool shall not be used for general purpose Process or Task execution
- implicit val byteVectorSemigroupInstance: Semigroup[ByteVector]
- object Cause
- object Exchange extends Serializable
- object Process extends ProcessInstances
- object ReceiveY
- object channel
- object compress
- object hash
-
object
io
Module of
Processfunctions and combinators for file and network I/O. - object process1
- object sink
- object tcp
- object tee
-
object
text
Module for text related processes.
- object time
- object udp
- object writer
- object wye