ToEffect

object ToEffect
Companion:
class
class Object
trait Matchable
class Any

Type members

Classlikes

trait Contextual[F[_], R] extends ToEffect[F, R]

Contextual version of the ToEffect.

Contextual version of the ToEffect.

Type parameters:
F

the higher-kinded type of a polymorphic effect

R

the type of ZIO environment

Value members

Concrete methods

def apply[F[_], R](implicit ev: ToEffect[F, R]): ToEffect[F, R]
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 effect F

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 effect F

to

the underlying conversion from zio.RIO to F

Implicits

Implicits

implicit def forAsync[F[_], R](implicit F: Async[F], runtime: Runtime[R]): ToEffect[F, R]

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