package codata
- Alphabetic
- By Inheritance
- codata
- 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
-
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
- object Cause
- object Process extends ProcessInstances
- object ReceiveY
- object channel
- object process1
- object sink
- object tee
- object writer
- object wye