safeExtension

org.atnos.eff.syntax.safe.safeExtension
object safeExtension

Attributes

Source
safe.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Extensions

Extensions

extension [R, A](e: Eff[R, A])
def `finally`(last: Eff[R, Unit])(using MemberInOut[Safe, R]): Eff[R, A]

Attributes

Source
safe.scala
def attempt(using MemberInOut[Safe, R]): Eff[R, Either[Throwable, A]]

Attributes

Source
safe.scala
def catchThrowable[B](pure: A => B, onThrowable: Throwable => Eff[R, B])(using MemberInOut[Safe, R]): Eff[R, B]

Attributes

Source
safe.scala
def execSafe[U](using Aux[Safe, R, U]): Eff[U, Either[Throwable, A]]

Attributes

Source
safe.scala
def ignoreException[E <: Throwable : ClassTag](implicit evidence$1: ClassTag[E], MemberInOut[Safe, R]): Eff[R, Unit]

Attributes

Source
safe.scala
def otherwise(onThrowable: Eff[R, A])(using MemberInOut[Safe, R]): Eff[R, A]

Attributes

Source
safe.scala
def recoverThrowable[B](pure: A => B, onThrowable: PartialFunction[Throwable, Eff[R, B]])(using MemberInOut[Safe, R]): Eff[R, B]

Attributes

Source
safe.scala
def runSafe[U](using Aux[Safe, R, U]): Eff[U, (Either[Throwable, A], List[Throwable])]

Attributes

Source
safe.scala
def thenFinally(last: Eff[R, Unit])(using MemberInOut[Safe, R]): Eff[R, A]

Attributes

Source
safe.scala
def whenFailed(onThrowable: Throwable => Eff[R, A])(using MemberInOut[Safe, R]): Eff[R, A]

Attributes

Source
safe.scala
def whenThrowable(onThrowable: PartialFunction[Throwable, Eff[R, A]])(using MemberInOut[Safe, R]): Eff[R, A]

Attributes

Source
safe.scala