A runtime that can be shutdown to release resources allocated to it.
- Companion:
- object
Value members
Abstract methods
Shuts down this runtime and releases resources allocated to it. Once this runtime has been shut down the behavior of methods on it is undefined and it should be discarded.
Shuts down this runtime and releases resources allocated to it. Once this runtime has been shut down the behavior of methods on it is undefined and it should be discarded.
Concrete methods
Inherited methods
The platform of the runtime, which provides the essential capabilities necessary to bootstrap execution of tasks.
The platform of the runtime, which provides the essential capabilities necessary to bootstrap execution of tasks.
- Inherited from:
- Runtime
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.
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.
- Inherited from:
- Runtime
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.
- Inherited from:
- Runtime
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.
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.
- Inherited from:
- Runtime
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.
- Inherited from:
- Runtime
Executes the effect synchronously. May fail on Scala.js if the effect cannot be entirely run 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.
- Inherited from:
- Runtime
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 the Throwable
, with this
Cause
"pretty printed" (in stackless mode) as the message. May fail on
Scala.js if the effect cannot be entirely run synchronously.
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 the Throwable
, with this
Cause
"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.
- Inherited from:
- Runtime
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.
- Inherited from:
- Runtime
Constructs a new Runtime
with the specified yield strategy.
Constructs a new Runtime
with the specified yield strategy.
- Inherited from:
- Runtime