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
Type Members
- type ValueType = A
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
get
value of theZFiberRef
with the specified partial function, returning aZFiberRef
with aget
value that succeeds with the result of the partial function if it is defined or else fails withNone
.Maps and filters the
get
value of theZFiberRef
with the specified partial function, returning aZFiberRef
with aget
value 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
set
value of theZFiberRef
with the specified function.Transforms the
set
value of theZFiberRef
with the specified function.- Definition Classes
- ZFiberRef
-
def
contramapEither[EC >: Nothing, C](f: (C) ⇒ Either[EC, A]): ZFiberRef[EC, Nothing, C, A]
Transforms the
set
value of theZFiberRef
with the specified fallible function.Transforms the
set
value of theZFiberRef
with the specified fallible function.- Definition Classes
- ZFiberRef
- def delete(implicit trace: ZTraceElement): UIO[Unit]
-
def
dimap[C, D](f: (C) ⇒ A, g: (A) ⇒ D): ZFiberRef[Nothing, Nothing, C, D]
Transforms both the
set
andget
values of theZFiberRef
with the specified functions.Transforms both the
set
andget
values of theZFiberRef
with 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
set
andget
values of theZFiberRef
with the specified fallible functions.Transforms both the
set
andget
values of theZFiberRef
with 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
set
andget
errors of theZFiberRef
with the specified functions.Transforms both the
set
andget
errors of theZFiberRef
with 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
set
value of theZFiberRef
with the specified predicate, returning aZFiberRef
with aset
value that succeeds if the predicate is satisfied or else fails withNone
.Filters the
set
value of theZFiberRef
with the specified predicate, returning aZFiberRef
with aset
value 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
get
value of theZFiberRef
with the specified predicate, returning aZFiberRef
with aget
value that succeeds if the predicate is satisfied or else fails withNone
.Filters the
get
value of theZFiberRef
with the specified predicate, returning aZFiberRef
with aget
value 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 offold
will 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 theset
value. -
def
get(implicit trace: ZTraceElement): IO[Nothing, A]
Reads the value associated with the current fiber.
- def getAndSet(a: A)(implicit trace: ZTraceElement): UIO[A]
- def getAndUpdate(f: (A) ⇒ A)(implicit trace: ZTraceElement): UIO[A]
- def getAndUpdateSome(pf: PartialFunction[A, A])(implicit trace: ZTraceElement): UIO[A]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
initialValue: Either[Nothing, A]
Returns the initial value or error.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
locally[R, EC, C](value: A)(use: ZIO[R, EC, C])(implicit trace: ZTraceElement): ZIO[R, EC, C]
Returns an
IO
that runs withvalue
bound to the current fiber. -
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 itsrelease
action. -
def
map[C](f: (A) ⇒ C): ZFiberRef[Nothing, Nothing, A, C]
Transforms the
get
value of theZFiberRef
with the specified function.Transforms the
get
value of theZFiberRef
with the specified function.- Definition Classes
- ZFiberRef
-
def
mapEither[EC >: Nothing, C](f: (A) ⇒ Either[EC, C]): ZFiberRef[Nothing, EC, A, C]
Transforms the
get
value of theZFiberRef
with the specified fallible function.Transforms the
get
value of theZFiberRef
with the specified fallible function.- Definition Classes
- ZFiberRef
- def modify[B](f: (A) ⇒ (B, A))(implicit trace: ZTraceElement): UIO[B]
- def modifySome[B](default: B)(pf: PartialFunction[A, (B, A)])(implicit trace: ZTraceElement): 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 reset(implicit trace: ZTraceElement): UIO[Unit]
-
def
set(value: A)(implicit trace: ZTraceElement): 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(implicit trace: ZTraceElement): UIO[ThreadLocal[A]]
Returns a
ThreadLocal
that can be used to interact with thisFiberRef
from side effecting code.Returns a
ThreadLocal
that can be used to interact with thisFiberRef
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 thisFiberRef
on all threads that are currently managed by ZIO, and behave like an ordinaryThreadLocal
on all other threads. - def update(f: (A) ⇒ A)(implicit trace: ZTraceElement): UIO[Unit]
- def updateAndGet(f: (A) ⇒ A)(implicit trace: ZTraceElement): UIO[A]
- def updateSome(pf: PartialFunction[A, A])(implicit trace: ZTraceElement): UIO[Unit]
- def updateSomeAndGet(pf: PartialFunction[A, A])(implicit trace: ZTraceElement): 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