scalaz.stream

processes

object processes extends process1 with tee with wye with io

Linear Supertypes
io, wye, tee, process1, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. processes
  2. io
  3. wye
  4. tee
  5. process1
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def attachL[I0, I, I2, O](p: Process1[I0, I])(w: Wye[I, I2, O]): Wye[I0, I2, O]

    Transform the left input of the given Wye using a Process1.

    Transform the left input of the given Wye using a Process1.

    Definition Classes
    wye
  8. def attachR[I, I1, I2, O](p: Process1[I1, I2])(w: Wye[I, I2, O]): Wye[I, I1, O]

    Transform the right input of the given Wye using a Process1.

    Transform the right input of the given Wye using a Process1.

    Definition Classes
    wye
  9. def awaitOption[I]: Process1[I, Option[I]]

    Await a single value, returning None if the input has been exhausted.

    Await a single value, returning None if the input has been exhausted.

    Definition Classes
    process1
  10. def boundedQueue[I](n: Int): Wye[Any, I, I]

    A Wye which emits values from its right branch, but allows up to n elements from the left branch to enqueue unanswered before blocking on the right branch.

    A Wye which emits values from its right branch, but allows up to n elements from the left branch to enqueue unanswered before blocking on the right branch.

    Definition Classes
    wye
  11. def buffer[I](n: Int): Process1[I, I]

    Behaves like the identity process, but requests n elements at a time from its input.

    Behaves like the identity process, but requests n elements at a time from its input.

    Definition Classes
    process1
  12. def bufferAll[I]: Process1[I, I]

    Behaves like the identity process, but batches all output into a single Emit.

    Behaves like the identity process, but batches all output into a single Emit.

    Definition Classes
    process1
  13. def bufferBy[I](f: (I) ⇒ Boolean): Process1[I, I]

    Behaves like the identity process, but requests elements from its input in blocks that end whenever the predicate switches from true to false.

    Behaves like the identity process, but requests elements from its input in blocks that end whenever the predicate switches from true to false.

    Definition Classes
    process1
  14. def bufferedChannel[R, I, O](acquire: Task[R])(flush: (R) ⇒ Task[O])(release: (R) ⇒ Task[Unit])(step: (R) ⇒ Task[(I) ⇒ Task[O]]): Channel[Task, Option[I], O]

    Implementation of resource for channels where resource needs to be flushed at the end of processing.

    Implementation of resource for channels where resource needs to be flushed at the end of processing.

    Definition Classes
    io
  15. def bufferedResource[R, O](acquire: Task[R])(flushAndRelease: (R) ⇒ Task[O])(step: (R) ⇒ Task[O]): Process[Task, O]

    Like resource, but the release action may emit a final value, useful for flushing any internal buffers.

    Like resource, but the release action may emit a final value, useful for flushing any internal buffers. NB: In the event of an error, this final value is ignored.

    Definition Classes
    io
  16. def channel[A, B](f: (A) ⇒ Task[B]): Channel[Task, A, B]

    Promote an effectful function to a Channel.

    Promote an effectful function to a Channel.

    Definition Classes
    io
  17. def chunk[I](n: Int): Process1[I, Vector[I]]

    Groups inputs into chunks of size n.

    Groups inputs into chunks of size n. The last chunk may have size less then n, depending on the number of elements in the input.

    Definition Classes
    process1
  18. def chunkAll[I]: Process1[I, Vector[I]]

    Collects up all output of this Process1 into a single Emit.

    Collects up all output of this Process1 into a single Emit.

    Definition Classes
    process1
  19. def chunkBy[I](f: (I) ⇒ Boolean): Process1[I, Vector[I]]

    Like chunk, but emits a chunk whenever the predicate switches from true to false.

    Like chunk, but emits a chunk whenever the predicate switches from true to false.

    Definition Classes
    process1
  20. def chunkR(is: ⇒ InputStream): Channel[Task, Int, Array[Byte]]

    Create a Channel[Task,Int,Bytes] from an InputStream by repeatedly requesting the given number of bytes.

    Create a Channel[Task,Int,Bytes] from an InputStream by repeatedly requesting the given number of bytes. The last chunk may be less than the requested size.

    This implementation requires an array allocation for each read. To recycle the input buffer, use unsafeChunkR.

    This implementation closes the InputStream when finished or in the event of an error.

    Definition Classes
    io
  21. def chunkW(os: ⇒ OutputStream): Process[Task, (Array[Byte]) ⇒ Task[Unit]]

    Create a Sink from an OutputStream, which will be closed when this Process is halted.

    Create a Sink from an OutputStream, which will be closed when this Process is halted.

    Definition Classes
    io
  22. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. def collect[I, I2](pf: PartialFunction[I, I2]): Process1[I, I2]

    Like collect on scala collection.

    Like collect on scala collection. Builds a new process by applying a partial function to all elements of this process on which the function is defined.

    Elements, for which the partial function is not defined are filtered out from new process

    Definition Classes
    process1
  24. def drainL[I](maxUnacknowledged: Int): Wye[Any, I, I]

    A Wye which echoes the right branch while draining the left, taking care to make sure that the left branch is never more than maxUnacknowledged behind the right.

    A Wye which echoes the right branch while draining the left, taking care to make sure that the left branch is never more than maxUnacknowledged behind the right. For example: src.connect(snk)(observe(10)) will output the the same thing as src, but will as a side effect direct output to snk, blocking on snk if more than 10 elements have enqueued without a response.

    Definition Classes
    wye
  25. def drainR[I](maxUnacknowledged: Int): Wye[I, Any, I]

    A Wye which echoes the left branch while draining the right, taking care to make sure that the right branch is never more than maxUnacknowledged behind the left.

    A Wye which echoes the left branch while draining the right, taking care to make sure that the right branch is never more than maxUnacknowledged behind the left. For example: src.connect(snk)(observe(10)) will output the the same thing as src, but will as a side effect direct output to snk, blocking on snk if more than 10 elements have enqueued without a response.

    Definition Classes
    wye
  26. def drop[I](n: Int): Process1[I, I]

    Skips the first n elements of the input, then passes through the rest.

    Skips the first n elements of the input, then passes through the rest.

    Definition Classes
    process1
  27. def dropWhile[I](f: (I) ⇒ Boolean): Process1[I, I]

    Skips elements of the input while the predicate is true, then passes through the remaining inputs.

    Skips elements of the input while the predicate is true, then passes through the remaining inputs.

    Definition Classes
    process1
  28. def dynamic[I, I2](f: (I) ⇒ Request, g: (I2) ⇒ Request): Wye[I, I2, These[I, I2]]

    After each input, dynamically determine whether to read from the left, right, or both, for the subsequent input, using the provided functions f and g.

    After each input, dynamically determine whether to read from the left, right, or both, for the subsequent input, using the provided functions f and g. The returned Wye begins by reading from the left side and is left-biased--if a read of both branches returns a These(x,y), it uses the signal generated by f for its next step.

    Definition Classes
    wye
  29. def dynamic1[I](f: (I) ⇒ Request): Wye[I, I, I]

    Invokes dynamic with I == I2, and produces a single I output.

    Invokes dynamic with I == I2, and produces a single I output. Output is left-biased: if a These(i1,i2) is emitted, this is translated to an emitSeq(List(i1,i2)).

    Definition Classes
    wye
  30. def either[I, I2]: Wye[I, I2, \/[I, I2]]

    Nondeterminstic interleave of both inputs.

    Nondeterminstic interleave of both inputs. Emits values whenever either of the inputs is available.

    Definition Classes
    wye
  31. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  32. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  33. def feed[I, O](i: Seq[I])(p: Process1[I, O]): Process1[I, O]

    Feed a sequence of inputs to a Process1.

    Feed a sequence of inputs to a Process1.

    Definition Classes
    process1
  34. def feed1[I, I2, O](i: These[I, I2])(w: Wye[I, I2, O]): Wye[I, I2, O]

    Feed a single These value to a Wye.

    Feed a single These value to a Wye.

    Definition Classes
    wye
  35. def feed1[I, O](i: I)(p: Process1[I, O]): Process1[I, O]

    Feed a single input to a Process1.

    Feed a single input to a Process1.

    Definition Classes
    process1
  36. def feed1Both[I, I2, O](i: I, i2: I2)(w: Wye[I, I2, O]): Wye[I, I2, O]

    Feed a value to both the right and left branch of a Wye.

    Feed a value to both the right and left branch of a Wye.

    Definition Classes
    wye
  37. def feed1L[I, I2, O](i: I)(w: Wye[I, I2, O]): Wye[I, I2, O]

    Feed a single value to the left branch of a Wye.

    Feed a single value to the left branch of a Wye.

    Definition Classes
    wye
  38. def feed1R[I, I2, O](i2: I2)(w: Wye[I, I2, O]): Wye[I, I2, O]

    Feed a single value to the right branch of a Wye.

    Feed a single value to the right branch of a Wye.

    Definition Classes
    wye
  39. def feedL[I, I2, O](i: Seq[I])(w: Wye[I, I2, O]): Wye[I, I2, O]

    Feed a sequence of values to the left branch of a Wye.

    Feed a sequence of values to the left branch of a Wye.

    Definition Classes
    wye
  40. def feedR[I, I2, O](i2: Seq[I2])(w: Wye[I, I2, O]): Wye[I, I2, O]

    Feed a sequence of values to the right branch of a Wye.

    Feed a sequence of values to the right branch of a Wye.

    Definition Classes
    wye
  41. def fileChunkR(f: String, bufferSize: Int = 4096): Channel[Task, Int, Array[Byte]]

    Create a Source from a file name and optional buffer size in bytes.

    Create a Source from a file name and optional buffer size in bytes.

    Definition Classes
    io
  42. def fileChunkW(f: String, bufferSize: Int = 4096): Process[Task, (Array[Byte]) ⇒ Task[Unit]]

    Create a Sink from a file name and optional buffer size in bytes.

    Create a Sink from a file name and optional buffer size in bytes.

    Definition Classes
    io
  43. def fillBuffer[A](buf: Buffer[A]): Sink[Task, A]

    A Sink which, as a side effect, adds elements to the given Buffer.

    A Sink which, as a side effect, adds elements to the given Buffer.

    Definition Classes
    io
  44. def filter[I](f: (I) ⇒ Boolean): Process1[I, I]

    Skips any elements of the input not matching the predicate.

    Skips any elements of the input not matching the predicate.

    Definition Classes
    process1
  45. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  46. def find[I](f: (I) ⇒ Boolean): Process1[I, I]

    Skips any elements not satisfying predicate and when found, will emit that element and terminate

    Skips any elements not satisfying predicate and when found, will emit that element and terminate

    Definition Classes
    process1
  47. def flip[I, I2, O](w: Wye[I, I2, O]): Wye[I2, I, O]

    Convert right requests to left requests and vice versa.

    Convert right requests to left requests and vice versa.

    Definition Classes
    wye
  48. def fold[A, B](z: B)(f: (B, A) ⇒ B): Process1[A, B]

    Process1 form of List.fold.

    Process1 form of List.fold. Folds the elements of this Process using the specified associative binary operator.

    Unlike List.fold the order is always from the left side, i.e. it will always honor order of A.

    If Process of A is empty, it will just emit z and terminate

    Process(1,2,3,4) |> fold(0)(_ + _) == Process(10)

    Definition Classes
    process1
  49. def fold1[A](f: (A, A) ⇒ A): Process1[A, A]

    Process1 form of List.reduce.

    Process1 form of List.reduce.

    Reduces the elements of this Process using the specified associative binary operator.

    Process(1,2,3,4) |> reduce(_ + _) == Process(10) Process(1) |> reduce(_ + _) == Process(1) Process() |> reduce(_ + _) == Process()

    Definition Classes
    process1
  50. def fold1Map[A, B](f: (A) ⇒ B)(implicit M: Monoid[B]): Process1[A, B]

    Like fold1 only uses f to map A to B and uses Monoid M or associative operation

    Like fold1 only uses f to map A to B and uses Monoid M or associative operation

    Definition Classes
    process1
  51. def fold1Monoid[A](implicit M: Semigroup[A]): Process1[A, A]

    alias for reduceMonoid

    alias for reduceMonoid

    Definition Classes
    process1
  52. def foldMap[A, B](f: (A) ⇒ B)(implicit M: Monoid[B]): Process1[A, B]

    Like fold only uses f to map A to B and uses Monoid M or associative operation

    Like fold only uses f to map A to B and uses Monoid M or associative operation

    Definition Classes
    process1
  53. def foldMonoid[A](implicit M: Monoid[A]): Process1[A, A]

    Like fold but uses Monoid for folding operation

    Like fold but uses Monoid for folding operation

    Definition Classes
    process1
  54. def foldSemigroup[A](implicit M: Semigroup[A]): Process1[A, A]

    alias for reduceSemigroup

    alias for reduceSemigroup

    Definition Classes
    process1
  55. def forall[I](f: (I) ⇒ Boolean): Process1[I, Boolean]

    Emits a single true value if all input matches the predicate.

    Emits a single true value if all input matches the predicate. Halts with false as soon as a non-matching element is received.

    Definition Classes
    process1
  56. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  57. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  58. def id[I]: Process1[I, I]

    Repeatedly echo the input; satisfies x |> id == x and id |> x == x.

    Repeatedly echo the input; satisfies x |> id == x and id |> x == x.

    Definition Classes
    process1
  59. def init[I](head: I*): Process1[I, I]

    Emit the given values, then echo the rest of the input.

    Emit the given values, then echo the rest of the input.

    Definition Classes
    process1
  60. def interleave[I]: Tee[I, I, I]

    A Tee which alternates between emitting values from the left input and the right input.

    A Tee which alternates between emitting values from the left input and the right input.

    Definition Classes
    tee
  61. def interrupt[I]: Wye[Boolean, I, I]

    Let through the right branch as long as the left branch is false, listening asynchronously for the left branch to become true.

    Let through the right branch as long as the left branch is false, listening asynchronously for the left branch to become true.

    Definition Classes
    wye
  62. def intersperse[A](separator: A): Process1[A, A]

    Add separator between elements of the input.

    Add separator between elements of the input. For example, Process(1,2,3,4) |> intersperse(0) == Process(1,0,2,0,3,0,4).

    Definition Classes
    process1
  63. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  64. def last[I]: Process1[I, I]

    Skip all but the last element of the input.

    Skip all but the last element of the input.

    Definition Classes
    process1
  65. def lastOr[I](i: ⇒ I): Process1[I, I]

    Skip all but the last element of the input.

    Skip all but the last element of the input. This Process will always emit exactly one value; If the input is empty, i is emitted.

    Definition Classes
    process1
  66. def lift[I, O](f: (I) ⇒ O): Process1[I, O]

    Transform the input using the given function, f.

    Transform the input using the given function, f.

    Definition Classes
    process1
  67. def liftL[A, B, C](p: Process1[A, B]): Process1[\/[A, C], \/[B, C]]

    Transform p to operate on the left hand side of an \/, passing through any values it receives on the right.

    Transform p to operate on the left hand side of an \/, passing through any values it receives on the right. Note that this halts whenever p halts.

    Definition Classes
    process1
  68. def liftR[A, B, C](p: Process1[B, C]): Process1[\/[A, B], \/[A, C]]

    Transform p to operate on the right hand side of an \/, passing through any values it receives on the left.

    Transform p to operate on the right hand side of an \/, passing through any values it receives on the left. Note that this halts whenever p halts.

    Definition Classes
    process1
  69. def linesR(filename: String): Process[Task, String]

    Create a Process[Task,String] from the lines of a file, using the resource combinator to ensure the file is closed when processing the stream of lines is finished.

    Create a Process[Task,String] from the lines of a file, using the resource combinator to ensure the file is closed when processing the stream of lines is finished.

    Definition Classes
    io
  70. def merge[I]: Wye[I, I, I]

    Nondeterminstic interleave of both inputs.

    Nondeterminstic interleave of both inputs. Emits values whenever either of the inputs is available.

    Definition Classes
    wye
  71. def multiplex[I, I2, O](chan1: Process1[I, O], chan2: Process1[I2, O]): Process1[\/[I, I2], O]

    Split the input and send to either chan1 or chan2, halting when either branch halts.

    Split the input and send to either chan1 or chan2, halting when either branch halts.

    Definition Classes
    process1
  72. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  73. final def notify(): Unit

    Definition Classes
    AnyRef
  74. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  75. def passL[I]: Tee[I, Any, I]

    Definition Classes
    tee
  76. def passR[I2]: Tee[Any, I2, I2]

    A Tee which ignores all input from left.

    A Tee which ignores all input from left.

    Definition Classes
    tee
  77. def record[I, O](p: Process1[I, O]): Process1[I, (Seq[O], Process1[I, O])]

    Record evaluation of p, emitting the current state along with the ouput of each step.

    Record evaluation of p, emitting the current state along with the ouput of each step.

    Definition Classes
    process1
  78. def reduce[A](f: (A, A) ⇒ A): Process1[A, A]

    Process1 form of List.reduce.

    Process1 form of List.reduce.

    Reduces the elements of this Process using the specified associative binary operator.

    Process(1,2,3,4) |> reduce(_ + _) == Process(10) Process(1) |> reduce(_ + _) == Process(1) Process() |> reduce(_ + _) == Process()

    Unlike List.reduce will not fail when Process is empty.

    Definition Classes
    process1
  79. def reduceMap[A, B](f: (A) ⇒ B)(implicit M: Monoid[B]): Process1[A, B]

    Like reduce only uses f to map A to B and uses Monoid M or associative operation

    Like reduce only uses f to map A to B and uses Monoid M or associative operation

    Definition Classes
    process1
  80. def reduceMonoid[A](implicit M: Semigroup[A]): Process1[A, A]

    Like reduce but uses Monoid for reduce operation

    Like reduce but uses Monoid for reduce operation

    Definition Classes
    process1
  81. def reduceSemigroup[A](implicit M: Semigroup[A]): Process1[A, A]

    Like reduce but uses Semigroup associative operation

    Like reduce but uses Semigroup associative operation

    Definition Classes
    process1
  82. def resource[R, O](acquire: Task[R])(release: (R) ⇒ Task[Unit])(step: (R) ⇒ Task[O]): Process[Task, O]

    Generic combinator for producing a Process[Task,O] from some effectful O source.

    Generic combinator for producing a Process[Task,O] from some effectful O source. The source is tied to some resource, R (like a file handle) that we want to ensure is released. See lines below for an example use.

    Definition Classes
    io
  83. def rethrow[A]: Process1[\/[Throwable, A], A]

    Throws any input exceptions and passes along successful results.

    Throws any input exceptions and passes along successful results.

    Definition Classes
    process1
  84. def scan[A, B](z: B)(f: (B, A) ⇒ B): Process1[A, B]

    Similar to List.

    Similar to List.scan. Produces a process of B containing cumulative results of applying the operator to Process of A. It will always emit z, even when the Process of A is empty

    Definition Classes
    process1
  85. def scan1[A](f: (A, A) ⇒ A): Process1[A, A]

    Similar to scan, but unlike it it won't emit the z even when there is no input of A.

    Similar to scan, but unlike it it won't emit the z even when there is no input of A.

    Process(1,2,3,4) |> scan1(_ + _) == Process(1,3,6,10) Process(1) |> scan1(_ + _) == Process(1) Process() |> scan1(_ + _) == Process()

    Definition Classes
    process1
  86. def scan1Map[A, B](f: (A) ⇒ B)(implicit M: Monoid[B]): Process1[A, B]

    Like scan1 only uses f to map A to B and uses Monoid M or associative operation

    Like scan1 only uses f to map A to B and uses Monoid M or associative operation

    Definition Classes
    process1
  87. def scan1Monoid[A](implicit M: Monoid[A]): Process1[A, A]

    Like scan1 but uses Monoid for associative operation

    Like scan1 but uses Monoid for associative operation

    Definition Classes
    process1
  88. def scanMap[A, B](f: (A) ⇒ B)(implicit M: Monoid[B]): Process1[A, B]

    Like scan only uses f to map A to B and uses Monoid M or associative operation

    Like scan only uses f to map A to B and uses Monoid M or associative operation

    Definition Classes
    process1
  89. def scanMonoid[A](implicit M: Monoid[A]): Process1[A, A]

    Like scan but uses Monoid for associative operation

    Like scan but uses Monoid for associative operation

    Definition Classes
    process1
  90. def scanSemigroup[A](implicit M: Semigroup[A]): Process1[A, A]

    Like scan1 but uses Semigroup for associative operation

    Like scan1 but uses Semigroup for associative operation

    Definition Classes
    process1
  91. def skip: Process1[Any, Nothing]

    Reads a single element of the input, emits nothing, then halts.

    Reads a single element of the input, emits nothing, then halts.

    Definition Classes
    process1
  92. def split[I](f: (I) ⇒ Boolean): Process1[I, Vector[I]]

    Break the input into chunks where the delimiter matches the predicate.

    Break the input into chunks where the delimiter matches the predicate. The delimiter does not appear in the output. Two adjacent delimiters in the input result in an empty chunk in the output.

    Definition Classes
    process1
  93. def splitOn[I](i: I)(implicit arg0: Equal[I]): Process1[I, Vector[I]]

    Break the input into chunks where the input is equal to the given delimiter.

    Break the input into chunks where the input is equal to the given delimiter. The delimiter does not appear in the output. Two adjacent delimiters in the input result in an empty chunk in the output.

    Definition Classes
    process1
  94. def stdOut: Sink[Task, String]

    The standard output stream, as a Sink.

    The standard output stream, as a Sink. This Sink does not emit newlines after each element. For that, use stdoutLines.

    Definition Classes
    io
  95. def stdOutLines: Sink[Task, String]

    The standard output stream, as a Sink.

    The standard output stream, as a Sink. This Sink emits newlines after each element. If this is not desired, use stdout.

    Definition Classes
    io
  96. def stripNone[A]: Process1[Option[A], A]

    Remove any None inputs.

    Remove any None inputs.

    Definition Classes
    process1
  97. def sum[N](implicit N: Numeric[N]): Process1[N, N]

    Emit a running sum of the values seen so far.

    Emit a running sum of the values seen so far. The first value emitted will be the first number seen (not 0). The length of the output Process always matches the length of the input Process.

    Definition Classes
    process1
  98. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  99. def take[I](n: Int): Process1[I, I]

    Passes through n elements of the input, then halts.

    Passes through n elements of the input, then halts.

    Definition Classes
    process1
  100. def takeThrough[I](f: (I) ⇒ Boolean): Process1[I, I]

    Like takeWhile, but emits the first value which tests false.

    Like takeWhile, but emits the first value which tests false.

    Definition Classes
    process1
  101. def takeWhile[I](f: (I) ⇒ Boolean): Process1[I, I]

    Passes through elements of the input as long as the predicate is true, then halts.

    Passes through elements of the input as long as the predicate is true, then halts.

    Definition Classes
    process1
  102. def terminated[A]: Process1[A, Option[A]]

    Wraps all inputs in Some, then outputs a single None before halting.

    Wraps all inputs in Some, then outputs a single None before halting.

    Definition Classes
    process1
  103. def timedQueue[I](d: Duration, maxSize: Int = Int.MaxValue): Wye[Duration, I, I]

    A Wye which blocks on the right side when either a) the age of the oldest unanswered element from the left size exceeds the given duration, or b) the number of unanswered elements from the left exceeds maxSize.

    A Wye which blocks on the right side when either a) the age of the oldest unanswered element from the left size exceeds the given duration, or b) the number of unanswered elements from the left exceeds maxSize.

    Definition Classes
    wye
  104. def toString(): String

    Definition Classes
    AnyRef → Any
  105. def unboundedQueue[I]: Wye[Any, I, I]

    Wye which repeatedly awaits both branches, emitting any values received from the right.

    Wye which repeatedly awaits both branches, emitting any values received from the right. Useful in conjunction with connect, for instance src.connect(snk)(unboundedQueue)

    Definition Classes
    wye
  106. def unsafeChunkR(is: ⇒ InputStream): Channel[Task, Array[Byte], Array[Byte]]

    Create a Channel[Task,Array[Byte],Array[Bytes]] from an InputStream by repeatedly filling the input buffer.

    Create a Channel[Task,Array[Byte],Array[Bytes]] from an InputStream by repeatedly filling the input buffer. The last chunk may be less than the requested size.

    It is safe to recyle the same buffer for consecutive reads as long as whatever consumes this Process never stores the Array[Byte] returned or pipes it to a combinator (like buffer) that does. Use chunkR for a safe version of this combinator - this takes an Int number of bytes to read and allocates a fresh Array[Byte] for each read.

    This implementation closes the InputStream when finished or in the event of an error.

    Definition Classes
    io
  107. def until[I]: Tee[Boolean, I, I]

    Echoes the right branch until the left branch becomes true, then halts.

    Echoes the right branch until the left branch becomes true, then halts.

    Definition Classes
    tee
  108. val utf8Encode: Process1[String, Array[Byte]]

    Convert String inputs to UTF-8 encoded byte arrays.

    Convert String inputs to UTF-8 encoded byte arrays.

    Definition Classes
    process1
  109. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  110. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  111. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  112. def when[I]: Tee[Boolean, I, I]

    Echoes the right branch when the left branch is true.

    Echoes the right branch when the left branch is true.

    Definition Classes
    tee
  113. def window[I](n: Int): Process1[I, Vector[I]]

    Outputs a sliding window of size n onto the input.

    Outputs a sliding window of size n onto the input.

    Definition Classes
    process1
  114. def yip[I, I2]: Wye[I, I2, (I, I2)]

    Nondeterministic version of zip which requests both sides in parallel.

    Nondeterministic version of zip which requests both sides in parallel.

    Definition Classes
    wye
  115. def yipL[I, I2](n: Int): Wye[I, I2, (I, I2)]

    Left-biased, buffered version of yip.

    Left-biased, buffered version of yip. Allows up to n elements to enqueue on the left unanswered before requiring a response from the right. If buffer is empty, always reads from the left.

    Definition Classes
    wye
  116. def yipWith[I, I2, O](f: (I, I2) ⇒ O): Wye[I, I2, O]

    Nondeterministic version of zipWith which requests both sides in parallel.

    Nondeterministic version of zipWith which requests both sides in parallel.

    Definition Classes
    wye
  117. def yipWithL[I, O, O2](n: Int)(f: (I, O) ⇒ O2): Wye[I, O, O2]

    Left-biased, buffered version of yipWith.

    Left-biased, buffered version of yipWith. Allows up to n elements to enqueue on the left unanswered before requiring a response from the right. If buffer is empty, always reads from the left.

    Definition Classes
    wye
  118. def zip[I, I2]: Tee[I, I2, (I, I2)]

    Defined as zipWith((_,_))

    Defined as zipWith((_,_))

    Definition Classes
    tee
  119. def zipAll[I, I2](padI: I, padI2: I2): Tee[I, I2, (I, I2)]

    A version of zip that pads the shorter stream with values.

    A version of zip that pads the shorter stream with values.

    Definition Classes
    tee
  120. def zipWith[I, I2, O](f: (I, I2) ⇒ O): Tee[I, I2, O]

    Zip together two inputs, then apply the given function, halting as soon as either input is exhausted.

    Zip together two inputs, then apply the given function, halting as soon as either input is exhausted. This implementation reads from the left, then the right.

    Definition Classes
    tee
  121. def zipWithAll[I, I2, O](padI: I, padI2: I2)(f: (I, I2) ⇒ O): Tee[I, I2, O]

    A version of zipWith that pads the shorter stream with values.

    A version of zipWith that pads the shorter stream with values.

    Definition Classes
    tee

Inherited from io

Inherited from wye

Inherited from tee

Inherited from process1

Inherited from AnyRef

Inherited from Any

Ungrouped