final class Runtime[A] extends ZFiberRef[Nothing, Nothing, A, A]
- Self Type
- Runtime[A]
- Alphabetic
- By Inheritance
- Runtime
- ZFiberRef
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
collect[C](pf: PartialFunction[A, C]): ZFiberRef[Nothing, Option[Nothing], A, C]
Maps and filters the
getvalue of theZFiberRefwith the specified partial function, returning aZFiberRefwith agetvalue that succeeds with the result of the partial function if it is defined or else fails withNone.Maps and filters the
getvalue of theZFiberRefwith the specified partial function, returning aZFiberRefwith agetvalue that succeeds with the result of the partial function if it is defined or else fails withNone.- Definition Classes
- ZFiberRef
-
def
contramap[C](f: (C) ⇒ A): ZFiberRef[Nothing, Nothing, C, A]
Transforms the
setvalue of theZFiberRefwith the specified function.Transforms the
setvalue of theZFiberRefwith the specified function.- Definition Classes
- ZFiberRef
-
def
contramapEither[EC >: Nothing, C](f: (C) ⇒ Either[EC, A]): ZFiberRef[EC, Nothing, C, A]
Transforms the
setvalue of theZFiberRefwith the specified fallible function.Transforms the
setvalue of theZFiberRefwith the specified fallible function.- Definition Classes
- ZFiberRef
-
def
dimap[C, D](f: (C) ⇒ A, g: (A) ⇒ D): ZFiberRef[Nothing, Nothing, C, D]
Transforms both the
setandgetvalues of theZFiberRefwith the specified functions.Transforms both the
setandgetvalues of theZFiberRefwith the specified functions.- Definition Classes
- ZFiberRef
-
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
setandgetvalues of theZFiberRefwith the specified fallible functions.Transforms both the
setandgetvalues of theZFiberRefwith the specified fallible functions.- Definition Classes
- ZFiberRef
-
def
dimapError[EC, ED](f: (Nothing) ⇒ EC, g: (Nothing) ⇒ ED): ZFiberRef[EC, ED, A, A]
Transforms both the
setandgeterrors of theZFiberRefwith the specified functions.Transforms both the
setandgeterrors of theZFiberRefwith the specified functions.- Definition Classes
- ZFiberRef
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
filterInput[A1 <: A](f: (A1) ⇒ Boolean): ZFiberRef[Option[Nothing], Nothing, A1, A]
Filters the
setvalue of theZFiberRefwith the specified predicate, returning aZFiberRefwith asetvalue that succeeds if the predicate is satisfied or else fails withNone.Filters the
setvalue of theZFiberRefwith the specified predicate, returning aZFiberRefwith asetvalue that succeeds if the predicate is satisfied or else fails withNone.- Definition Classes
- ZFiberRef
-
def
filterOutput(f: (A) ⇒ Boolean): ZFiberRef[Nothing, Option[Nothing], A, A]
Filters the
getvalue of theZFiberRefwith the specified predicate, returning aZFiberRefwith agetvalue that succeeds if the predicate is satisfied or else fails withNone.Filters the
getvalue of theZFiberRefwith the specified predicate, returning aZFiberRefwith agetvalue that succeeds if the predicate is satisfied or else fails withNone.- Definition Classes
- ZFiberRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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 theZFiberRef. For most use cases one of the more specific combinators implemented in terms offoldwill be more ergonomic but this method is extremely useful for implementing new combinators. -
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 thesetvalue. -
def
get: IO[Nothing, A]
Reads the value associated with the current fiber.
- def getAndSet(a: A): UIO[A]
- def getAndUpdate(f: (A) ⇒ A): UIO[A]
- def getAndUpdateSome(pf: PartialFunction[A, A]): UIO[A]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
locally[R, EC, C](value: A)(use: ZIO[R, EC, C]): ZIO[R, EC, C]
Returns an
IOthat runs withvaluebound to the current fiber. -
def
map[C](f: (A) ⇒ C): ZFiberRef[Nothing, Nothing, A, C]
Transforms the
getvalue of theZFiberRefwith the specified function.Transforms the
getvalue of theZFiberRefwith the specified function.- Definition Classes
- ZFiberRef
-
def
mapEither[EC >: Nothing, C](f: (A) ⇒ Either[EC, C]): ZFiberRef[Nothing, EC, A, C]
Transforms the
getvalue of theZFiberRefwith the specified fallible function.Transforms the
getvalue of theZFiberRefwith the specified fallible function.- Definition Classes
- ZFiberRef
- def modify[B](f: (A) ⇒ (B, A)): UIO[B]
- def modifySome[B](default: B)(pf: PartialFunction[A, (B, A)]): UIO[B]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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
-
def
set(value: A): IO[Nothing, Unit]
Sets the value associated with the current fiber.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unsafeAsThreadLocal: UIO[ThreadLocal[A]]
Returns a
ThreadLocalthat can be used to interact with thisFiberReffrom side effecting code.Returns a
ThreadLocalthat can be used to interact with thisFiberReffrom 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
ThreadLocalwill be backed by thisFiberRefon all threads that are currently managed by ZIO, and behave like an ordinaryThreadLocalon all other threads. - def update(f: (A) ⇒ A): UIO[Unit]
- def updateAndGet(f: (A) ⇒ A): UIO[A]
- def updateSome(pf: PartialFunction[A, A]): UIO[Unit]
- def updateSomeAndGet(pf: PartialFunction[A, A]): UIO[A]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
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