final class Handle[+F[_], +A] extends AnyRef

A currently open Stream[F,A], allowing chunks to be pulled or pushed.

Source
Handle.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Handle
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Handle(buffer: List[NonEmptyChunk[A]], underlying: Stream[F, A])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from Handle[F, A] to any2stringadd[Handle[F, A]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Handle[F, A], B)
    Implicit
    This member is added by an implicit conversion from Handle[F, A] to ArrowAssoc[Handle[F, A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def await: Pull[F, Nothing, (NonEmptyChunk[A], Handle[F, A])]
  8. def await1: Pull[F, Nothing, (A, Handle[F, A])]

    Awaits a single element from this Handle.

  9. def await1Async[F2[_], A2 >: A](implicit S: Sub1[F, F2], F2: Async[F2], A2: RealSupertype[A, A2]): Pull[F2, Nothing, AsyncStep1[F2, A2]]
  10. def await1Option: Pull[F, Nothing, Option[(A, Handle[F, A])]]

    Awaits the next available element from the input, or None if the input is exhausted.

  11. def awaitAsync[F2[_], A2 >: A](implicit S: Sub1[F, F2], F2: Async[F2], A2: RealSupertype[A, A2]): Pull[F2, Nothing, AsyncStep[F2, A2]]
  12. def awaitLimit(maxChunkSize: Int): Pull[F, Nothing, (NonEmptyChunk[A], Handle[F, A])]

    Like await, but returns a NonEmptyChunk of no more than maxChunkSize elements.

  13. def awaitN(n: Int, allowFewer: Boolean = false): Pull[F, Nothing, (List[NonEmptyChunk[A]], Handle[F, A])]

    Returns a List[NonEmptyChunk[A]] from the input whose combined size has a maximum value n.

  14. def awaitOption: Pull[F, Nothing, Option[(NonEmptyChunk[A], Handle[F, A])]]

    Awaits the next available chunk from the input, or None if the input is exhausted.

  15. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def copy: Pull[F, A, Handle[F, A]]

    Copies the next available chunk to the output.

  17. def copy1: Pull[F, A, Handle[F, A]]

    Copies the next available element to the output.

  18. implicit def covary[F2[_]](implicit S: Sub1[F, F2]): Handle[F2, A]
  19. def drop(n: Long): Pull[F, Nothing, Handle[F, A]]

    Drops the first n elements of this Handle, and returns the new Handle.

  20. def dropWhile(p: (A) ⇒ Boolean): Pull[F, Nothing, Handle[F, A]]

    Drops elements of the this Handle until the predicate p fails, and returns the new Handle.

    Drops elements of the this Handle until the predicate p fails, and returns the new Handle. If non-empty, the first element of the returned Handle will fail p.

  21. def echo: Pull[F, A, Nothing]

    Writes all inputs to the output of the returned Pull.

  22. def echo1: Pull[F, A, Handle[F, A]]

    Reads a single element from the input and emits it to the output.

    Reads a single element from the input and emits it to the output. Returns the new Handle.

  23. def echoChunk: Pull[F, A, Handle[F, A]]

    Reads the next available chunk from the input and emits it to the output.

    Reads the next available chunk from the input and emits it to the output. Returns the new Handle.

  24. def ensuring(cond: (Handle[F, A]) ⇒ Boolean, msg: ⇒ Any): Handle[F, A]
    Implicit
    This member is added by an implicit conversion from Handle[F, A] to Ensuring[Handle[F, A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  25. def ensuring(cond: (Handle[F, A]) ⇒ Boolean): Handle[F, A]
    Implicit
    This member is added by an implicit conversion from Handle[F, A] to Ensuring[Handle[F, A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  26. def ensuring(cond: Boolean, msg: ⇒ Any): Handle[F, A]
    Implicit
    This member is added by an implicit conversion from Handle[F, A] to Ensuring[Handle[F, A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  27. def ensuring(cond: Boolean): Handle[F, A]
    Implicit
    This member is added by an implicit conversion from Handle[F, A] to Ensuring[Handle[F, A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  28. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  30. def fetchN(n: Int): Pull[F, Nothing, Handle[F, A]]

    Like awaitN, but leaves the buffered input unconsumed.

  31. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  32. def find(f: (A) ⇒ Boolean): Pull[F, Nothing, (A, Handle[F, A])]

    Awaits the next available element where the predicate returns true.

  33. def fold[B](z: B)(f: (B, A) ⇒ B): Pull[F, Nothing, B]

    Folds all inputs using an initial value z and supplied binary operator, and writes the final result to the output of the supplied Pull when the stream has no more values.

  34. def fold1[A2 >: A](f: (A2, A2) ⇒ A2): Pull[F, Nothing, A2]

    Folds all inputs using the supplied binary operator, and writes the final result to the output of the supplied Pull when the stream has no more values.

  35. def forall(p: (A) ⇒ Boolean): Pull[F, Nothing, Boolean]

    Writes a single true value if all input matches the predicate, false otherwise.

  36. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from Handle[F, A] to StringFormat[Handle[F, A]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  37. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  38. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  39. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  40. def last: Pull[F, Nothing, Option[A]]

    Returns the last element of the input, if non-empty.

  41. def map[A2](f: (A) ⇒ A2): Handle[F, A2]
  42. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  43. final def notify(): Unit
    Definition Classes
    AnyRef
  44. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  45. def peek: Pull[F, Nothing, (Chunk[A], Handle[F, A])]
  46. def peek1: Pull[F, Nothing, (A, Handle[F, A])]
  47. def prefetch[F2[_]](implicit sub: Sub1[F, F2], F: Async[F2]): Pull[F2, Nothing, Pull[F2, Nothing, Handle[F2, A]]]

    Like await, but runs the await asynchronously.

    Like await, but runs the await asynchronously. A flatMap into inner Pull logically blocks until this await completes.

  48. def push[A2 >: A](c: Chunk[A2])(implicit A2: RealSupertype[A, A2]): Handle[F, A2]
  49. def push1[A2 >: A](a: A2)(implicit A2: RealSupertype[A, A2]): Handle[F, A2]
  50. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  51. def take(n: Long): Pull[F, A, Handle[F, A]]

    Emits the first n elements of the input and return the new Handle.

  52. def takeRight(n: Long): Pull[F, Nothing, Vector[A]]

    Emits the last n elements of the input.

  53. def takeThrough(p: (A) ⇒ Boolean): Pull[F, A, Handle[F, A]]

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

  54. def takeWhile(p: (A) ⇒ Boolean): Pull[F, A, Handle[F, A]]

    Emits the elements of this Handle until the predicate p fails, and returns the new Handle.

    Emits the elements of this Handle until the predicate p fails, and returns the new Handle. If non-empty, the returned Handle will have a first element i for which p(i) is false.

  55. def toString(): String
    Definition Classes
    Handle → AnyRef → Any
  56. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  58. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  59. def [B](y: B): (Handle[F, A], B)
    Implicit
    This member is added by an implicit conversion from Handle[F, A] to ArrowAssoc[Handle[F, A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Handle[F, A] to any2stringadd[Handle[F, A]]

Inherited by implicit conversion StringFormat from Handle[F, A] to StringFormat[Handle[F, A]]

Inherited by implicit conversion Ensuring from Handle[F, A] to Ensuring[Handle[F, A]]

Inherited by implicit conversion ArrowAssoc from Handle[F, A] to ArrowAssoc[Handle[F, A]]

Ungrouped