Packages

final class Runtime[A] extends ZFiberRef[Nothing, Nothing, A, A]

Self Type
Runtime[A]
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Runtime
  2. ZFiberRef
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type ValueType = A

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[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. def collect[C](pf: PartialFunction[A, C]): ZFiberRef[Nothing, Option[Nothing], A, C]

    Maps and filters the get value of the ZFiberRef with the specified partial function, returning a ZFiberRef with a get value that succeeds with the result of the partial function if it is defined or else fails with None.

    Maps and filters the get value of the ZFiberRef with the specified partial function, returning a ZFiberRef with a get value that succeeds with the result of the partial function if it is defined or else fails with None.

    Definition Classes
    ZFiberRef
  7. def contramap[C](f: (C) => A): ZFiberRef[Nothing, Nothing, C, A]

    Transforms the set value of the ZFiberRef with the specified function.

    Transforms the set value of the ZFiberRef with the specified function.

    Definition Classes
    ZFiberRef
  8. def contramapEither[EC >: Nothing, C](f: (C) => Either[EC, A]): ZFiberRef[EC, Nothing, C, A]

    Transforms the set value of the ZFiberRef with the specified fallible function.

    Transforms the set value of the ZFiberRef with the specified fallible function.

    Definition Classes
    ZFiberRef
  9. def delete(implicit trace: ZTraceElement): UIO[Unit]
  10. def dimap[C, D](f: (C) => A, g: (A) => D): ZFiberRef[Nothing, Nothing, C, D]

    Transforms both the set and get values of the ZFiberRef with the specified functions.

    Transforms both the set and get values of the ZFiberRef with the specified functions.

    Definition Classes
    ZFiberRef
  11. def dimapEither[EC >: Nothing, ED >: Nothing, C, D](f: (C) => Either[EC, A], g: (A) => Either[ED, D]): ZFiberRef[EC, ED, C, D]

    Transforms both the set and get values of the ZFiberRef with the specified fallible functions.

    Transforms both the set and get values of the ZFiberRef with the specified fallible functions.

    Definition Classes
    ZFiberRef
  12. def dimapError[EC, ED](f: (Nothing) => EC, g: (Nothing) => ED): ZFiberRef[EC, ED, A, A]

    Transforms both the set and get errors of the ZFiberRef with the specified functions.

    Transforms both the set and get errors of the ZFiberRef with the specified functions.

    Definition Classes
    ZFiberRef
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. def filterInput[A1 <: A](f: (A1) => Boolean): ZFiberRef[Option[Nothing], Nothing, A1, A]

    Filters the set value of the ZFiberRef with the specified predicate, returning a ZFiberRef with a set value that succeeds if the predicate is satisfied or else fails with None.

    Filters the set value of the ZFiberRef with the specified predicate, returning a ZFiberRef with a set value that succeeds if the predicate is satisfied or else fails with None.

    Definition Classes
    ZFiberRef
  16. def filterOutput(f: (A) => Boolean): ZFiberRef[Nothing, Option[Nothing], A, A]

    Filters the get value of the ZFiberRef with the specified predicate, returning a ZFiberRef with a get value that succeeds if the predicate is satisfied or else fails with None.

    Filters the get value of the ZFiberRef with the specified predicate, returning a ZFiberRef with a get value that succeeds if the predicate is satisfied or else fails with None.

    Definition Classes
    ZFiberRef
  17. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  18. def fold[EC, ED, C, D](ea: (Nothing) => EC, eb: (Nothing) => ED, ca: (C) => Either[EC, A], bd: (A) => Either[ED, D]): ZFiberRef[EC, ED, C, D]

    Folds over the error and value types of the ZFiberRef.

    Folds over the error and value types of the ZFiberRef. This is a highly polymorphic method that is capable of arbitrarily transforming the error and value types of the ZFiberRef. For most use cases one of the more specific combinators implemented in terms of fold will be more ergonomic but this method is extremely useful for implementing new combinators.

    Definition Classes
    RuntimeZFiberRef
  19. def foldAll[EC, ED, C, D](ea: (Nothing) => EC, eb: (Nothing) => ED, ec: (Nothing) => EC, ca: (C) => (A) => Either[EC, A], bd: (A) => Either[ED, D]): ZFiberRef[EC, ED, C, D]

    Folds over the error and value types of the ZFiberRef, allowing access to the state in transforming the set value.

    Folds over the error and value types of the ZFiberRef, allowing access to the state in transforming the set value. This is a more powerful version of fold but requires unifying the error types.

    Definition Classes
    RuntimeZFiberRef
  20. def get(implicit trace: ZTraceElement): IO[Nothing, A]

    Reads the value associated with the current fiber.

    Reads the value associated with the current fiber. Returns initial value if no value was set or inherited from parent.

    Definition Classes
    RuntimeZFiberRef
  21. def getAndSet(a: A)(implicit trace: ZTraceElement): UIO[A]
  22. def getAndUpdate(f: (A) => A)(implicit trace: ZTraceElement): UIO[A]
  23. def getAndUpdateSome(pf: PartialFunction[A, A])(implicit trace: ZTraceElement): UIO[A]
  24. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  25. def getWith[R, E, B](f: (A) => ZIO[R, E, B])(implicit trace: ZTraceElement): ZIO[R, E, B]

    Gets the value associated with the current fiber and uses it to run the specified effect.

    Gets the value associated with the current fiber and uses it to run the specified effect.

    Definition Classes
    RuntimeZFiberRef
  26. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  27. def initialValue: Either[Nothing, A]

    Returns the initial value or error.

    Returns the initial value or error.

    Definition Classes
    RuntimeZFiberRef
  28. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  29. def locally[R, EC, C](value: A)(use: ZIO[R, EC, C])(implicit trace: ZTraceElement): ZIO[R, EC, C]

    Returns an IO that runs with value bound to the current fiber.

    Returns an IO that runs with value bound to the current fiber.

    Guarantees that fiber data is properly restored via acquireRelease.

    Definition Classes
    RuntimeZFiberRef
  30. def locallyManaged(value: A)(implicit trace: ZTraceElement): ZManaged[Any, Nothing, Unit]

    Returns a managed effect that sets the value associated with the curent fiber to the specified value as its acquire action and restores it to its original value as its release action.

    Returns a managed effect that sets the value associated with the curent fiber to the specified value as its acquire action and restores it to its original value as its release action.

    Definition Classes
    RuntimeZFiberRef
  31. def map[C](f: (A) => C): ZFiberRef[Nothing, Nothing, A, C]

    Transforms the get value of the ZFiberRef with the specified function.

    Transforms the get value of the ZFiberRef with the specified function.

    Definition Classes
    ZFiberRef
  32. def mapEither[EC >: Nothing, C](f: (A) => Either[EC, C]): ZFiberRef[Nothing, EC, A, C]

    Transforms the get value of the ZFiberRef with the specified fallible function.

    Transforms the get value of the ZFiberRef with the specified fallible function.

    Definition Classes
    ZFiberRef
  33. def modify[B](f: (A) => (B, A))(implicit trace: ZTraceElement): UIO[B]
  34. def modifySome[B](default: B)(pf: PartialFunction[A, (B, A)])(implicit trace: ZTraceElement): UIO[B]
  35. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  36. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  37. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  38. def readOnly: ZFiberRef[Nothing, Nothing, Nothing, A]

    Returns a read only view of the ZFiberRef.

    Returns a read only view of the ZFiberRef.

    Definition Classes
    ZFiberRef
  39. def reset(implicit trace: ZTraceElement): UIO[Unit]
  40. def set(value: A)(implicit trace: ZTraceElement): IO[Nothing, Unit]

    Sets the value associated with the current fiber.

    Sets the value associated with the current fiber.

    Definition Classes
    RuntimeZFiberRef
  41. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  42. def toString(): String
    Definition Classes
    AnyRef → Any
  43. def unsafeAsThreadLocal(implicit trace: ZTraceElement): UIO[ThreadLocal[A]]

    Returns a ThreadLocal that can be used to interact with this FiberRef from side effecting code.

    Returns a ThreadLocal that can be used to interact with this FiberRef from side effecting code.

    This feature is meant to be used for integration with side effecting code, that needs to access fiber specific data, like MDC contexts and the like. The returned ThreadLocal will be backed by this FiberRef on all threads that are currently managed by ZIO, and behave like an ordinary ThreadLocal on all other threads.

  44. def update(f: (A) => A)(implicit trace: ZTraceElement): UIO[Unit]
  45. def updateAndGet(f: (A) => A)(implicit trace: ZTraceElement): UIO[A]
  46. def updateSome(pf: PartialFunction[A, A])(implicit trace: ZTraceElement): UIO[Unit]
  47. def updateSomeAndGet(pf: PartialFunction[A, A])(implicit trace: ZTraceElement): UIO[A]
  48. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  49. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  50. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  51. def writeOnly: ZFiberRef[Nothing, Unit, A, Nothing]

    Returns a write only view of the ZFiberRef.

    Returns a write only view of the ZFiberRef.

    Definition Classes
    ZFiberRef

Inherited from ZFiberRef[Nothing, Nothing, A, A]

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped