If you monad supports this typeclass, than you can use try/catch/finally inside await.
- Companion:
- object
- Source:
- CpsMonad.scala
Type members
Inherited types
Value members
Abstract methods
flatMap over result of checked evaluation of A
flatMap over result of checked evaluation of A
- Source:
- CpsMonad.scala
Concrete methods
map over result of checked evaluation of A
map over result of checked evaluation of A
- Source:
- CpsMonad.scala
synonym for flatMapTry needed for processing awaits inside mapTry.
synonym for flatMapTry needed for processing awaits inside mapTry.
- Source:
- CpsMonad.scala
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.
- Source:
- CpsMonad.scala
try to evaluate async operation and wrap successful or failed result into F
.
try to evaluate async operation and wrap successful or failed result into F
.
- Source:
- CpsMonad.scala
try to evaluate synchonious operation and wrap successful or failed result into F
.
try to evaluate synchonious operation and wrap successful or failed result into F
.
- Source:
- CpsMonad.scala
ensure that action
will run before getting value from fa
ensure that action
will run before getting value from fa
- Source:
- CpsMonad.scala
async shift of withAction
.
async shift of withAction
.
This method is substituted instead withAction, when we use await
inside withAction
argument.
- Source:
- CpsMonad.scala
return result of fa
after completition of action
.
return result of fa
after completition of action
.
- Source:
- CpsMonad.scala
Inherited methods
run op in the context environment.
run op in the context environment.
- Inherited from:
- CpsMonad
- Source:
- CpsMonad.scala
bind combinator, which compose f
over fa
bind combinator, which compose f
over fa
- Inherited from:
- CpsMonad
- Source:
- CpsMonad.scala
Pure - wrap value t
inside monad.
Pure - wrap value t
inside monad.
Note, that pure use eager evaluation, which is different from Haskell.
- Inherited from:
- CpsMonad
- Source:
- CpsMonad.scala