ZioUtil

org.mbari.raziel.etc.zio.ZioUtil
object ZioUtil

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
ZioUtil.type

Members list

Value members

Concrete methods

def safeRun[E, A](app: ZIO[Any, E, A]): Option[A]

Run the given effect.

Run the given effect.

Value parameters

app

The effect to run

Attributes

Returns

The result of the effect. Some on success. None on Failure

def unsafeRun[E, A](app: ZIO[Any, E, A]): A

Run the given effect. Throws an exception if the effect fails.

Run the given effect. Throws an exception if the effect fails.

Value parameters

app

The effect to run

Attributes

Returns

The result of the effect