Safe

trait Safe[F[_]]

Typeclass for "safe" actions which are actions which can be attempted or finalized

Companion:
object
class Object
trait Matchable
class Any
object FinalizedAction.type
object SafeOperation.type

Value members

Abstract methods

def attempt[A](fa: F[A]): F[Either[Throwable, A]]
def finalizeWith[A](fa: F[A], f: Finalizer): F[A]