Object/Trait

zio.prelude.fx

ZPure

Related Docs: trait ZPure | package fx

Permalink

object ZPure

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

Type Members

  1. final class EnvironmentWithPartiallyApplied[R] extends AnyVal

    Permalink
  2. final class EnvironmentWithPurePartiallyApplied[R] extends AnyVal

    Permalink
  3. sealed trait FlagType extends AnyRef

    Permalink
  4. final class ServiceWithPartiallyApplied[R] extends AnyVal

    Permalink
  5. final class ServiceWithPurePartiallyApplied[R] extends AnyVal

    Permalink
  6. implicit final class ZPureRefineToOrDieOps[W, S1, S2, R, E <: Throwable, A] extends AnyRef

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. object FlagType

    Permalink
  5. implicit def ZPureCovariant[W, S1, S2, R, E]: Covariant[[+A]ZPure[W, S1, S2, R, E, A]]

    Permalink

    The Covariant instance for ZPure.

  6. implicit def ZPureCovariantIdentityBoth[W, S, R, E]: CovariantIdentityBoth[[+A]ZPure[W, S, S, R, E, A]]

    Permalink

    The IdentityBoth instance for ZPure.

  7. implicit def ZPureIdentityFlatten[W, S, R, E]: IdentityFlatten[[+A]ZPure[W, S, S, R, E, A]]

    Permalink

    The IdentityFlatten instance for ZPure.

  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def attempt[S, A](a: ⇒ A): ZPure[Nothing, S, S, Any, Throwable, A]

    Permalink

    Constructs a computation, catching any Throwable that is thrown.

  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def collectAll[F[+_], W, S, R, E, A](fa: F[ZPure[W, S, S, R, E, A]])(implicit arg0: ForEach[F]): ZPure[W, S, S, R, E, F[A]]

    Permalink

    Combines a collection of computations into a single computation that passes the updated state from each computation to the next and collects the results.

  12. def environment[S, R]: ZPure[Nothing, S, S, R, Nothing, ZEnvironment[R]]

    Permalink

    Accesses the whole environment of the computation.

  13. def environmentWith[R]: EnvironmentWithPartiallyApplied[R]

    Permalink

    Accesses the environment of the computation.

  14. def environmentWithPure[R]: EnvironmentWithPurePartiallyApplied[R]

    Permalink

    Accesses the environment of the computation in the context of a computation.

  15. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. def fail[E](e: E): ZPure[Nothing, Any, Nothing, Any, E, Nothing]

    Permalink
  18. def failCause[E](cause: Cause[E]): ZPure[Nothing, Any, Nothing, Any, E, Nothing]

    Permalink
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def forEach[F[+_], W, S, R, E, A, B](fa: F[A])(f: (A) ⇒ ZPure[W, S, S, R, E, B])(implicit arg0: ForEach[F]): ZPure[W, S, S, R, E, F[B]]

    Permalink

    Maps each element of a collection to a computation and combines them all into a single computation that passes the updated state from each computation to the next and collects the results.

  21. def foreach[W, S, R, E, A, B, Collection[+Element] <: Iterable[Element]](in: Collection[A])(f: (A) ⇒ ZPure[W, S, S, R, E, B])(implicit bf: zio.BuildFrom[Collection[A], B, Collection[B]]): ZPure[W, S, S, R, E, Collection[B]]

    Permalink

    Maps each element of a collection to a computation and combines them all into a single computation that passes the updated state from each computation to the next and collects the results.

  22. def foreachDiscard[W, S, R, E, A, B](in: Iterable[A])(f: (A) ⇒ ZPure[W, S, S, R, E, B]): ZPure[W, S, S, R, E, Unit]

    Permalink

    Maps each element of a collection to a computation and combines them all into a single computation that passes the updated state from each computation to the next and discards the results.

  23. def fromEither[S, L, R](either: Either[L, R]): ZPure[Nothing, S, S, Any, L, R]

    Permalink

    Constructs a computation from an Either.

  24. def fromOption[S, A](option: Option[A]): ZPure[Nothing, S, S, Any, Unit, A]

    Permalink

    Constructs a computation from an Option.

  25. def fromPredicate[A](value: A)(f: (A) ⇒ Boolean): Validation[None.type, A]

    Permalink

    Constructs a Validation from a predicate, failing with None.

  26. def fromPredicateWith[E, A](error: ⇒ E)(value: A)(f: (A) ⇒ Boolean): Validation[E, A]

    Permalink

    Constructs a Validation from a predicate, failing with the error provided.

  27. def fromTry[S, A](t: Try[A]): ZPure[Nothing, S, S, Any, Throwable, A]

    Permalink

    Constructs a computation from a scala.util.Try.

  28. def get[S]: ZPure[Nothing, S, S, Any, Nothing, S]

    Permalink

    Constructs a computation that returns the initial state unchanged.

  29. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  31. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  32. def log[S, W](w: W): ZPure[W, S, S, Any, Nothing, Unit]

    Permalink
  33. def modify[S1, S2, A](f: (S1) ⇒ (A, S2)): ZPure[Nothing, S1, S2, Any, Nothing, A]

    Permalink

    Constructs a computation from the specified modify function.

  34. def modifyEither[S1, S2, E, A](f: (S1) ⇒ Either[E, (A, S2)]): ZPure[Nothing, S1, S2, Any, E, A]

    Permalink

    Constructs a computation that may fail from the specified modify function.

  35. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  36. def none[S]: ZPure[Nothing, S, S, Any, Nothing, Option[Nothing]]

    Permalink

    Constructs a computation that succeeds with the None value.

  37. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  38. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  39. def service[S, R](implicit arg0: Tag[R]): ZPure[Nothing, S, S, R, Nothing, R]

    Permalink

    Accesses the specified service in the environment of the computation.

  40. def serviceWith[R]: ServiceWithPartiallyApplied[R]

    Permalink

    Accesses the specified service in the environment of the computation.

  41. def serviceWithPure[R]: ServiceWithPurePartiallyApplied[R]

    Permalink

    Accesses the specified service in the environment of the computation in the context of a computation.

  42. def set[S](s: S): ZPure[Nothing, Any, S, Any, Nothing, Unit]

    Permalink

    Constructs a computation that sets the state to the specified value.

  43. def succeed[S, A](a: A): ZPure[Nothing, S, S, Any, Nothing, A]

    Permalink

    Constructs a computation that always succeeds with the specified value, passing the state through unchanged.

  44. def suspend[W, S1, S2, R, E, A](pure: ⇒ ZPure[W, S1, S2, R, E, A]): ZPure[W, S1, S2, R, E, A]

    Permalink

    Returns a lazily constructed computation, whose construction may itself require effects.

  45. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  46. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  47. def unit[S]: ZPure[Nothing, S, S, Any, Nothing, Unit]

    Permalink

    Constructs a computation that always returns the Unit value, passing the state through unchanged.

  48. def unless[W, S, R, E, A](p: Boolean)(pure: ZPure[W, S, S, R, E, A])(implicit trace: Trace): ZPure[W, S, S, R, E, Option[A]]

    Permalink

    The moral equivalent of if (!p) exp

  49. def update[S1, S2](f: (S1) ⇒ S2): ZPure[Nothing, S1, S2, Any, Nothing, Unit]

    Permalink

    Constructs a computation from the specified update function.

  50. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. def when[W, S, R, E, A](p: Boolean)(pure: ZPure[W, S, S, R, E, A]): ZPure[W, S, S, R, E, Option[A]]

    Permalink

    The moral equivalent of if (p) exp

  54. def whenCase[W, S, R, E, A, B](a: A)(pf: PartialFunction[A, ZPure[W, S, S, R, E, B]]): ZPure[W, S, S, R, E, Option[B]]

    Permalink

    Runs a computation when the supplied PartialFunction matches for the given value, otherwise does nothing.

Inherited from AnyRef

Inherited from Any

Ungrouped