cps
Type members
Classlikes
Marker interface for forcing monad evaluation before discard. Useful for pure effect monads.
Marker interface for forcing monad evaluation before discard. Useful for pure effect monads.
Interoperability with Future: allows async[F]{ .. awaitFuture ... }
Interoperability with Future: allows async[F]{ .. awaitFuture ... }
- Companion
- object
Basic CpsMonad operations. Implementing this typeclass is enough to use async/await with supports of basic control-flow constructions (if, loops, but no exceptions).
Basic CpsMonad operations. Implementing this typeclass is enough to use async/await with supports of basic control-flow constructions (if, loops, but no exceptions).
- Companion
- object
You should implement this interface and made given instance available for using await[F] in async[G]
You should implement this interface and made given instance available for using await[F] in async[G]
Interoperability with Future: allows async[F]{ .. awaitFuture ... }
Interoperability with Future: allows async[F]{ .. awaitFuture ... }
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.
- Companion
- object
when customValueDiscard is on, value can be discarded only for types T for which CustomValueDiscard is enabled. And ValueDiscard.apply is called when value is discarded.
when customValueDiscard is on, value can be discarded only for types T for which CustomValueDiscard is enabled. And ValueDiscard.apply is called when value is discarded.
- Companion
- object