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

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 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
  10. 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
  11. 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
  12. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. 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
  15. 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
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. 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
  18. 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
  19. def get: 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
  20. def getAndSet(a: A): UIO[A]

    Permalink
  21. def getAndUpdate(f: (A) ⇒ A): UIO[A]

    Permalink
  22. def getAndUpdateSome(pf: PartialFunction[A, A]): UIO[A]

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

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

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

    Permalink
    Definition Classes
    Any
  26. def locally[R, EC, C](value: A)(use: ZIO[R, EC, C]): 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
  27. 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
  28. 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
  29. def modify[B](f: (A) ⇒ (B, A)): UIO[B]

    Permalink
  30. def modifySome[B](default: B)(pf: PartialFunction[A, (B, A)]): UIO[B]

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

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

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

    Permalink
    Definition Classes
    AnyRef
  34. 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
  35. def set(value: A): IO[Nothing, Unit]

    Permalink

    Sets the value associated with the current fiber.

    Sets the value associated with the current fiber.

    Definition Classes
    RuntimeZFiberRef
  36. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  38. def unsafeAsThreadLocal: 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.

  39. def update(f: (A) ⇒ A): UIO[Unit]

    Permalink
  40. def updateAndGet(f: (A) ⇒ A): UIO[A]

    Permalink
  41. def updateSome(pf: PartialFunction[A, A]): UIO[Unit]

    Permalink
  42. def updateSomeAndGet(pf: PartialFunction[A, A]): UIO[A]

    Permalink
  43. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. 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