cps.syntax

package cps.syntax

Extensions

Extensions

extension [F[_], T, G[_]](ft: F[T])
transparent inline def unary_!(using CpsAwaitable[F], CpsMonadContext[G]): T

short synonym of await It can be helpful when monad or environment does not support automatic coloring, but the default await syntax is too heavy.

short synonym of await It can be helpful when monad or environment does not support automatic coloring, but the default await syntax is too heavy.

Source:
package.scala
extension [F[_], T, S](x: F[T])
def flatMap(using m: CpsMonad[F])(f: T => F[S]): F[S]

allows to use for syntax on generic monad-wrapped values.

allows to use for syntax on generic monad-wrapped values.

Source:
ForSyntax.scala
def map(using m: CpsMonad[F])(f: T => S): F[S]

allows to use for syntax on generic monad-wrapped values.

allows to use for syntax on generic monad-wrapped values.

Source:
ForSyntax.scala