- Companion:
- class
Type members
Classlikes
Contextual version of the CatsInterop.
Contextual version of the CatsInterop.
Inherits two utility methods from ToEffect.Contextual and FromEffect.Contextual:
def toEffect[A](rio: RIO[R, A], env: R): F[A]
def fromEffect[A](fa: F[A], env: R): RIO[R, A]
- Type parameters:
- F
the higher-kinded type of a polymorphic effect
- R
the type of ZIO environment
Value members
Concrete methods
Contextual interop between `F` and [[zio.RIO]].
An environment of type `R` is injected into the effect `F` via `injector`.
The execution of `RIO[R, A]` relies on the environment `R` modified by [[InjectEnv.modify]].
- Type parameters:
- F
the higher-kinded type of a polymorphic effect
- R
the type of ZIO environment
- Value parameters:
- dispatcher
the instance of cats.effect.std.Dispatcher. Required in order to perform the conversion
- injector
injects the given environment of type
R
into the effectF
Contextual interop between `F` and [[zio.RIO]].
An environment of type `R` is injected into the effect `F` via `injector`.
The execution of `RIO[R, A]` relies on the environment `R` modified by [[InjectEnv.modify]].
- 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
- underlying
the underlying interop between
F
and zio.RIO
Default (non-contextual) interop between F
and zio.RIO.
Identical to what https://github.com/zio/interop-cats offers.
Default (non-contextual) interop between F
and zio.RIO.
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:
- dispatcher
the instance of cats.effect.std.Dispatcher. Required in order to perform the conversion
- See also:
See ToEffect.forAsync and FromEffect.forDispatcher for more details.
Creates an instance of CatsInterop using ToEffect and FromEffect under the hood.
Creates an instance of CatsInterop using ToEffect and FromEffect under the hood.
- Type parameters:
- F
the higher-kinded type of a polymorphic effect
- R
the type of ZIO environment
- Value parameters:
- from
the conversion from
F
to zio.RIO- to
the conversion from zio.RIO to
F
Deprecated methods
- Deprecated
- Deprecated
Implicits
Implicits
Materializes an instance of CatsInterop using ToEffect and FromEffect available in the implicit scope.
Materializes an instance of CatsInterop using ToEffect and FromEffect available in the implicit scope.
- Type parameters:
- F
the higher-kinded type of a polymorphic effect
- R
the type of ZIO environment
- Value parameters:
- from
the conversion from
F
to zio.RIO- to
the conversion from zio.RIO to
F