Packages

object Pull extends PullLowPriority

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

Type Members

  1. final class PartiallyAppliedFromEither[F[_]] extends AnyRef

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 attemptEval[F[_], R](fr: F[R]): Pull[F, INothing, Either[Throwable, R]]

    Like eval but if the effectful value fails, the exception is returned in a Left instead of failing the pull.

  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. val done: Pull[Pure, INothing, Unit]

    The completed Pull.

    The completed Pull. Reads and outputs nothing.

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def eval[F[_], R](fr: F[R]): Pull[F, INothing, R]

    Evaluates the supplied effectful value and returns the result as the resource of the returned pull.

  11. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. def fromEither[F[x]]: PartiallyAppliedFromEither[F]

    Lifts an Either[Throwable, A] to an effectful Pull[F, A, Unit].

    Lifts an Either[Throwable, A] to an effectful Pull[F, A, Unit].

    Example:
    1. scala> import cats.effect.IO, scala.util.Try
      scala> Pull.fromEither[IO](Right(42)).stream.compile.toList.unsafeRunSync()
      res0: List[Int] = List(42)
      scala> Try(Pull.fromEither[IO](Left(new RuntimeException)).stream.compile.toList.unsafeRunSync())
      res1: Try[List[INothing]] = Failure(java.lang.RuntimeException)
  13. implicit def functionKInstance[F[_]]: ~>[F, [γ$2$]Pull[F, INothing, γ$2$]]

    FunctionK instance for F ~> Pull[F, INothing, ?]

    FunctionK instance for F ~> Pull[F, INothing, ?]

    Example:
    1. scala> import cats.Id
      scala> Pull.functionKInstance[Id](42).flatMap(Pull.output1).stream.compile.toList
      res0: cats.Id[List[Int]] = List(42)
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def loop[F[_], O, R](using: (R) => Pull[F, O, Option[R]]): (R) => Pull[F, O, Option[R]]

    Repeatedly uses the output of the pull as input for the next step of the pull.

    Repeatedly uses the output of the pull as input for the next step of the pull. Halts when a step terminates with None or Pull.raiseError.

  18. implicit def monadInstance[F[_], O]: Monad[[γ$4$]Pull[F, O, γ$4$]]
    Definition Classes
    PullLowPriority
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. def output[F[x] >: Pure[x], O](os: Chunk[O]): Pull[F, O, Unit]

    Outputs a chunk of values.

  23. def output1[F[x] >: Pure[x], O](o: O): Pull[F, O, Unit]

    Outputs a single value.

  24. def pure[F[x] >: Pure[x], R](r: R): Pull[F, INothing, R]

    Pull that outputs nothing and has result of r.

  25. def raiseError[F[_]](err: Throwable)(implicit arg0: RaiseThrowable[F]): Pull[F, INothing, INothing]

    Reads and outputs nothing, and fails with the given error.

    Reads and outputs nothing, and fails with the given error.

    The F type must be explicitly provided (e.g., via raiseError[IO] or raiseError[Fallible]).

  26. def suspend[F[x] >: Pure[x], O, R](p: => Pull[F, O, R]): Pull[F, O, R]

    Returns a pull that evaluates the supplied by-name each time the pull is used, allowing use of a mutable value in pull computations.

  27. implicit def syncInstance[F[_], O](implicit ev: ApplicativeError[F, Throwable]): Sync[[γ$0$]Pull[F, O, γ$0$]]

    Sync instance for Pull.

  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from PullLowPriority

Inherited from AnyRef

Inherited from Any

Ungrouped