Class

zio.ZFiberRef

Runtime

Related Doc: package ZFiberRef

Permalink

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. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type ValueType = A

    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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def collect[C](pf: PartialFunction[A, C]): ZFiberRef[Nothing, Option[Nothing], A, C]

    Permalink

    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]

    Permalink

    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]

    Permalink

    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]

    Permalink
  10. def dimap[C, D](f: (C) ⇒ A, g: (A) ⇒ D): ZFiberRef[Nothing, Nothing, C, D]

    Permalink

    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]

    Permalink

    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]

    Permalink

    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

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def filterInput[A1 <: A](f: (A1) ⇒ Boolean): ZFiberRef[Option[Nothing], Nothing, A1, A]

    Permalink

    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]

    Permalink

    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

    Permalink
    Attributes
    protected[java.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]

    Permalink

    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]

    Permalink

    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]

    Permalink

    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]

    Permalink
  22. def getAndUpdate(f: (A) ⇒ A)(implicit trace: ZTraceElement): UIO[A]

    Permalink
  23. def getAndUpdateSome(pf: PartialFunction[A, A])(implicit trace: ZTraceElement): UIO[A]

    Permalink
  24. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  25. def getWith[R, E, B](f: (A) ⇒ ZIO[R, E, B])(implicit trace: ZTraceElement): ZIO[R, E, B]

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef → Any
  27. def initialValue: Either[Nothing, A]

    Permalink

    Returns the initial value or error.

    Returns the initial value or error.

    Definition Classes
    RuntimeZFiberRef
  28. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  29. def locally[R, EC, C](value: A)(use: ZIO[R, EC, C])(implicit trace: ZTraceElement): ZIO[R, EC, C]

    Permalink

    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 locallyScoped(value: A)(implicit trace: ZTraceElement): ZIO[Scope, Nothing, Unit]

    Permalink

    Returns a scoped effect that sets the value associated with the curent fiber to the specified value and restores it to its original value when the scope is closed.

    Returns a scoped effect that sets the value associated with the curent fiber to the specified value and restores it to its original value when the scope is closed.

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

    Permalink

    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]

    Permalink

    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]

    Permalink
  34. def modifySome[B](default: B)(pf: PartialFunction[A, (B, A)])(implicit trace: ZTraceElement): UIO[B]

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

    Permalink
    Definition Classes
    AnyRef
  36. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  38. def readOnly: ZFiberRef[Nothing, Nothing, Nothing, A]

    Permalink

    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]

    Permalink
  40. def set(value: A)(implicit trace: ZTraceElement): IO[Nothing, Unit]

    Permalink

    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

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

    Permalink
    Definition Classes
    AnyRef → Any
  43. def unsafeAsThreadLocal(implicit trace: ZTraceElement): UIO[ThreadLocal[A]]

    Permalink

    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]

    Permalink
  45. def updateAndGet(f: (A) ⇒ A)(implicit trace: ZTraceElement): UIO[A]

    Permalink
  46. def updateSome(pf: PartialFunction[A, A])(implicit trace: ZTraceElement): UIO[Unit]

    Permalink
  47. def updateSomeAndGet(pf: PartialFunction[A, A])(implicit trace: ZTraceElement): UIO[A]

    Permalink
  48. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. def writeOnly: ZFiberRef[Nothing, Unit, A, Nothing]

    Permalink

    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 Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped