Packages

o

fs2

pipe2

object pipe2

Generic implementations of common 2-argument pipes.

Source
pipe2.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. pipe2
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. sealed trait Stepper [-I, -I2, +O] extends AnyRef

    Allows stepping of a pure pipe.

    Allows stepping of a pure pipe. Each invocation of step results in a value of the Stepper.Step algebra, indicating that the pipe is either done, it failed with an exception, it emitted a chunk of output, or it is awaiting input from either the left or right branch.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def covary[F[_], I, I2, O](p: Pipe2[Pure, I, I2, O]): Pipe2[F, I, I2, O]

    Converts a pure Pipe2 to an effectful Pipe2 of the specified type.

  7. def either[F[_], I, I2](implicit arg0: Async[F]): Pipe2[F, I, I2, Either[I, I2]]

    Like merge, but tags each output with the branch it came from.

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  13. def interleave[F[_], O]: Pipe2[F, O, O, O]

    Determinsitically interleaves elements, starting on the left, terminating when the end of either branch is reached naturally.

  14. def interleaveAll[F[_], O]: Pipe2[F, O, O, O]

    Determinsitically interleaves elements, starting on the left, terminating when the ends of both branches are reached naturally.

  15. def interrupt[F[_], I](implicit arg0: Async[F]): Pipe2[F, Boolean, I, I]

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

    Let through the s2 branch as long as the s1 branch is false, listening asynchronously for the left branch to become true. This halts as soon as either branch halts.

  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def merge[F[_], O](implicit arg0: Async[F]): Pipe2[F, O, O, O]

    Interleaves the two inputs nondeterministically.

    Interleaves the two inputs nondeterministically. The output stream halts after BOTH s1 and s2 terminate normally, or in the event of an uncaught failure on either s1 or s2. Has the property that merge(Stream.empty, s) == s and merge(fail(e), s) will eventually terminate with fail(e), possibly after emitting some elements of s first.

  18. def mergeDrainL[F[_], I, I2](implicit arg0: Async[F]): Pipe2[F, I, I2, I2]

    Defined as s1.drain merge s2.

    Defined as s1.drain merge s2. Runs s1 and s2 concurrently, ignoring any output of s1.

  19. def mergeDrainR[F[_], I, I2](implicit arg0: Async[F]): Pipe2[F, I, I2, I]

    Defined as s1 merge s2.drain.

    Defined as s1 merge s2.drain. Runs s1 and s2 concurrently, ignoring any output of s1.

  20. def mergeHaltBoth[F[_], O](implicit arg0: Async[F]): Pipe2[F, O, O, O]

    Like merge, but halts as soon as _either_ branch halts.

  21. def mergeHaltL[F[_], O](implicit arg0: Async[F]): Pipe2[F, O, O, O]

    Like merge, but halts as soon as the s1 branch halts.

  22. def mergeHaltR[F[_], O](implicit arg0: Async[F]): Pipe2[F, O, O, O]

    Like merge, but halts as soon as the s2 branch halts.

  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  26. def stepper[I, I2, O](p: Pipe2[Pure, I, I2, O]): Stepper[I, I2, O]

    Creates a Stepper, which allows incrementally stepping a pure Pipe2.

  27. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. def zip[F[_], I, I2]: Pipe2[F, I, I2, (I, I2)]

    Determinsitically zips elements, terminating when the end of either branch is reached naturally.

  33. def zipAll[F[_], I, I2](pad1: I, pad2: I2): Pipe2[F, I, I2, (I, I2)]

    Determinsitically zips elements, terminating when the ends of both branches are reached naturally, padding the left branch with pad1 and padding the right branch with pad2 as necessary.

  34. def zipAllWith[F[_], I, I2, O](pad1: I, pad2: I2)(f: (I, I2) ⇒ O): Pipe2[F, I, I2, O]

    Determinsitically zips elements with the specified function, terminating when the ends of both branches are reached naturally, padding the left branch with pad1 and padding the right branch with pad2 as necessary.

  35. def zipWith[F[_], I, I2, O](f: (I, I2) ⇒ O): Pipe2[F, I, I2, O]

    Determinsitically zips elements using the specified function, terminating when the end of either branch is reached naturally.

  36. object Stepper

Inherited from AnyRef

Inherited from Any

Ungrouped