object ToEffect
- Companion:
- class
Type members
Classlikes
Value members
Concrete methods
def contextual[F[_] : Async, R](implicit evidence$1: Async[F], injector: InjectEnv[F, R], runtime: Runtime[R]): Contextual[F, R]
Contextual conversion from [[zio.RIO]] to a polymorphic effect `F`.
An environment of type `R` is injected into the effect `F` via `injector`.
The execution of `RIO[R, A]` relies on the environment `R` taken from the parent `F` context via `askEnv`.
- Type parameters:
- F
the higher-kinded type of a polymorphic effect
- R
the type of ZIO environment
- Value parameters:
- injector
injects the given environment of type
R
into the effectF
def contextual[F[_] : Monad, R](to: ToEffect[F, R])(implicit evidence$2: Monad[F], injector: InjectEnv[F, R]): Contextual[F, R]
Contextual conversion from [[zio.RIO]] to a polymorphic effect `F`.
An environment of type `R` is injected into the effect `F` via `injector`.
The execution of `RIO[R, A]` relies on the environment `R` taken from the parent `F` context via `askEnv`.
- Type parameters:
- F
the higher-kinded type of a polymorphic effect
- R
the type of ZIO environment
- Value parameters:
- injector
injects the given environment of type
R
into the effectF
- to
the underlying conversion from zio.RIO to
F
Implicits
Implicits
Default (non-contextual) conversion from zio.RIO to a polymorphic effect F
.
Default (non-contextual) conversion from zio.RIO to a polymorphic effect F
.
Identical to what https://github.com/zio/interop-cats offers.
- Type parameters:
- F
the higher-kinded type of a polymorphic effect
- R
the type of ZIO environment
- Value parameters:
- F
the instance of cats.effect.Async. Required in order to perform the conversion
- runtime
the instance of
zio.Runtime
. Required in order to perform the conversion