Safe

org.specs2.control.Safe
See theSafe companion object
trait Safe[F[_]]

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

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object FinalizedAction.type
object SafeOperation.type

Members list

Concise view

Value members

Abstract methods

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