UnsafeAPI

trait UnsafeAPI
class Object
trait Matchable
class Any

Value members

Abstract methods

def fork[E, A](zio: ZIO[R, E, A])(implicit trace: Trace, unsafe: Unsafe): Runtime[E, A]

Executes the effect asynchronously, returning a fiber whose methods can await the exit value of the fiber or interrupt the fiber.

Executes the effect asynchronously, returning a fiber whose methods can await the exit value of the fiber or interrupt the fiber.

This method is effectful and should only be used at the edges of your application.

def run[E, A](zio: ZIO[R, E, A])(implicit trace: Trace, unsafe: Unsafe): Exit[E, A]

Executes the effect synchronously and returns its result as a zio.Exit value. May fail on Scala.js if the effect cannot be entirely run synchronously.

Executes the effect synchronously and returns its result as a zio.Exit value. May fail on Scala.js if the effect cannot be entirely run synchronously.

This method is effectful and should only be used at the edges of your application.

def runToFuture[E <: Throwable, A](zio: ZIO[R, E, A])(implicit trace: Trace, unsafe: Unsafe): CancelableFuture[A]

Executes the effect asynchronously, returning a Future that will be completed when the effect has been fully executed. The Future can be canceled, which will be translated into ZIO's interruption model.

Executes the effect asynchronously, returning a Future that will be completed when the effect has been fully executed. The Future can be canceled, which will be translated into ZIO's interruption model.

This method is effectful and should only be used at the edges of your application.