CpsTryMonad

trait CpsTryMonad[F[_]] extends CpsMonad[F]

If you monad supports this typeclass, than you can use try/catch/finally inside await.

If you monad supports this typeclass, than you can use try/catch/finally inside await.

trait CpsMonad[F]
class Object
trait Matchable
class Any

Type members

Inherited types

type WF[X] = F[X]
Inherited from
CpsMonad

Value members

Abstract methods

def error[A](e: Throwable): F[A]
def flatMapTry[A, B](fa: F[A])(f: Try[A] => F[B]): F[B]

Concrete methods

def mapTry[A, B](fa: F[A])(f: Try[A] => B): F[B]
def restore[A](fa: F[A])(fx: Throwable => F[A]): F[A]
def tryImpure[A](a: => F[A]): F[A]
def tryPure[A](a: => A): F[A]
def withAction[A](fa: F[A])(action: => Unit): F[A]
def withAsyncAction[A](fa: F[A])(action: => F[Unit]): F[A]

Inherited methods

def flatMap[A, B](fa: F[A])(f: A => F[B]): F[B]
Inherited from
CpsMonad
def map[A, B](fa: F[A])(f: A => B): F[B]
Inherited from
CpsMonad
def pure[T](t: T): F[T]
Inherited from
CpsMonad