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 ... }
Marker typeclass for wrappers, which we can await. Such traits can be not monads itself (for example, its impossible to set monad structure over js.Promise) but can be convertable into cps monads.
Marker typeclass for wrappers, which we can await. Such traits can be not monads itself (for example, its impossible to set monad structure over js.Promise) but can be convertable into cps monads.
- 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
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