trait Runtime[+R] extends AnyRef
A Runtime[R]
is capable of executing tasks within an environment R
.
- Alphabetic
- By Inheritance
- Runtime
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
Concrete 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
- def as[R1](r1: R1): Runtime[R1]
Constructs a new
Runtime
with the specified new environment. - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def map[R1](f: (R) => R1): Runtime[R1]
Constructs a new
Runtime
by mapping the environment. - def mapPlatform(f: (Platform) => Platform): Runtime[R]
Constructs a new
Runtime
by mapping the platform. - 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()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def unsafeRun[E, A](zio: => ZIO[R, E, A]): A
Executes the effect synchronously, failing with zio.FiberFailure if there are any errors.
Executes the effect synchronously, failing with zio.FiberFailure if there are any errors. May fail on Scala.js if the effect cannot be entirely run synchronously.
This method is effectful and should only be done at the edges of your program.
- final def unsafeRunAsync[E, A](zio: => ZIO[R, E, A])(k: (Exit[E, A]) => Any): Unit
Executes the effect asynchronously, eventually passing the exit value to the specified callback.
Executes the effect asynchronously, eventually passing the exit value to the specified callback.
This method is effectful and should only be invoked at the edges of your program.
- final def unsafeRunAsyncCancelable[E, A](zio: => ZIO[R, E, A])(k: (Exit[E, A]) => Any): (Id) => Exit[E, A]
Executes the effect asynchronously, eventually passing the exit value to the specified callback.
Executes the effect asynchronously, eventually passing the exit value to the specified callback. It returns a callback, which can be used to interrupt the running execution.
This method is effectful and should only be invoked at the edges of your program.
- final def unsafeRunAsync_[E, A](zio: ZIO[R, E, A]): Unit
Executes the effect asynchronously, discarding the result of execution.
Executes the effect asynchronously, discarding the result of execution.
This method is effectful and should only be invoked at the edges of your program.
- final def unsafeRunSync[E, A](zio: => ZIO[R, E, A]): Exit[E, A]
Executes the effect synchronously.
Executes the effect synchronously. May fail on Scala.js if the effect cannot be entirely run synchronously.
This method is effectful and should only be invoked at the edges of your program.
- final def unsafeRunTask[A](task: => RIO[R, A]): A
Executes the Task/RIO effect synchronously, failing with the original
Throwable
on both Cause.Fail and Cause.Die.Executes the Task/RIO effect synchronously, failing with the original
Throwable
on both Cause.Fail and Cause.Die. In addition, appends a new element to the suppressed exceptions of theThrowable
, with thisCause
"pretty printed" (in stackless mode) as the message. May fail on Scala.js if the effect cannot be entirely run synchronously.This method is effectful and should only be done at the edges of your program.
- final def unsafeRunToFuture[E <: Throwable, A](zio: ZIO[R, E, A]): CancelableFuture[A]
Runs the IO, returning a Future that will be completed when the effect has been executed.
Runs the IO, returning a Future that will be completed when the effect has been executed.
This method is effectful and should only be used at the edges of your program.
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withExecutor(e: Executor): Runtime[R]
Constructs a new
Runtime
with the specified executor. - def withFatal(f: (Throwable) => Boolean): Runtime[R]
Constructs a new
Runtime
with the specified fatal predicate. - def withReportFailure(f: (Cause[Any]) => Unit): Runtime[R]
Constructs a new
Runtime
with the specified error reporter. - def withReportFatal(f: (Throwable) => Nothing): Runtime[R]
Constructs a new
Runtime
with the fatal error reporter. - def withTracing(t: Tracing): Runtime[R]
Constructs a new
Runtime
with the specified tracer and tracing configuration. - def withTracingConfig(config: TracingConfig): Runtime[R]
Constructs a new
Runtime
with the specified tracing configuration. - def withYieldOnStart(cond: Boolean): Runtime[R]
Constructs a new
Runtime
with the specified yield strategy.