Lazy variant of pure, which by default -
create monadic expression according to the
choosen monad types.
(i.e. delaing for effect monads,
starting for eager monand, pure by defiault)
Lazy variant of pure, which by default -
create monadic expression according to the
choosen monad types.
(i.e. delaing for effect monads,
starting for eager monand, pure by defiault)
Attributes
Inherited from:
CpsMonad
def mapTry[A, B](fa: ZManaged[R, E, A])(f: Try[A] => B): F[B]
map over result of checked evaluation of A
map over result of checked evaluation of A
Attributes
Inherited from:
CpsTryMonad
def mapTryAsync[A, B](fa: ZManaged[R, E, A])(f: Try[A] => ZManaged[R, E, B]): F[B]
synonym for flatMapTry
needed for processing awaits inside mapTry.
synonym for flatMapTry
needed for processing awaits inside mapTry.
Attributes
Inherited from:
CpsTryMonad
def restore[A](fa: ZManaged[R, E, A])(fx: Throwable => ZManaged[R, E, A]): F[A]
restore fa, ie if fa sucessful - return fa,
otherwise apply fx to received error.
restore fa, ie if fa sucessful - return fa,
otherwise apply fx to received error.