ZioEffect

korolev.zio.ZioEffect
class ZioEffect[R, E](rts: Runtime[R], liftError: Throwable => E, unliftError: E => Throwable) extends Effect[[_] =>> ZIO[R, E, _$1]]

Attributes

Graph
Supertypes
trait Effect[[_] =>> ZIO[R, E, _$1]]
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def blocking[T](f: => T)(implicit ec: ExecutionContext): ZIO[R, E, T]
def delay[A](value: => A): ZIO[R, E, A]
def fail[A](e: Throwable): ZIO[R, E, A]
def flatMap[A, B](m: ZIO[R, E, A])(f: A => ZIO[R, E, B]): ZIO[R, E, B]
def fork[A](m: => ZIO[R, E, A])(implicit ec: ExecutionContext): ZIO[R, E, A]

Keep in mind that when F has strict semantic, effect should created inside 'fork()' brackets.

Keep in mind that when F has strict semantic, effect should created inside 'fork()' brackets.

Attributes

def fromTry[A](value: => Try[A]): ZIO[R, E, A]
def map[A, B](m: ZIO[R, E, A])(f: A => B): ZIO[R, E, B]
def never[T]: ZIO[R, E, T]
def promise[A](callback: (Either[Throwable, A] => Unit) => Unit): ZIO[R, E, A]
def promiseF[A](callback: (Either[Throwable, A] => Unit) => ZIO[R, E, Unit]): ZIO[R, E, A]
def pure[A](value: A): ZIO[R, E, A]
def recover[A, AA >: A](m: ZIO[R, E, A])(f: PartialFunction[Throwable, AA]): ZIO[R, E, AA]
def recoverF[A, AA >: A](m: ZIO[R, E, A])(f: PartialFunction[Throwable, ZIO[R, E, AA]]): ZIO[R, E, AA]
def run[A](m: ZIO[R, E, A]): Either[Throwable, A]
def runAsync[A](m: ZIO[R, E, A])(callback: Either[Throwable, A] => Unit): Unit
def sequence[A](in: List[ZIO[R, E, A]]): ZIO[R, E, List[A]]
def start[A](task: => ZIO[R, E, A])(implicit ec: ExecutionContext): ZIO[R, E, Fiber[[_] =>> ZIO[R, E, _$2], A]]

Keep in mind that when F has strict semantic, effect should created inside 'start()' brackets.

Keep in mind that when F has strict semantic, effect should created inside 'start()' brackets.

Attributes

def toFuture[A](m: ZIO[R, E, A]): Future[A]
def unit: ZIO[R, E, Unit]

Inherited methods

def delayAsync[A](value: => ZIO[R, E, A]): F[A]

Attributes

Inherited from:
Effect
def none[A]: F[Option[A]]

Attributes

Inherited from:
Effect