UnsafeAPI3

zio.Runtime.UnsafeAPI3

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Abstract methods

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

Attempts to execute the effect synchronously and returns its result as a zio.Exit value. If the effect cannot be entirely run synchronously, the effect will be forked and the fiber will be returned.

Attempts to execute the effect synchronously and returns its result as a zio.Exit value. If the effect cannot be entirely run synchronously, the effect will be forked and the fiber will be returned.

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

Attributes