CpsRuntimeAwaitProvider

cps.CpsRuntimeAwaitProvider

Indirect constructor for CpsRuntimeAwait[F] instance, which can be used in situation where runtime await instance can be build only inside of monad. (Example - cats.effect.IO)

When this typeclass is implemented for a monad F, we also can process arguments of high-order functions wihout requiring of shifted variants.

Attributes

Source
CpsRuntimeAwait.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def withRuntimeAwait[A](lambda: (CpsRuntimeAwait[F]) => F[A])(using ctx: CpsTryMonadContext[F]): F[A]

Attributes

Source
CpsRuntimeAwait.scala