implicit final class ExtraZioEffectOps[-R, +A] extends AnyVal
- Alphabetic
- By Inheritance
- ExtraZioEffectOps
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def toMonixTask: URIO[R, monix.eval.Task[A]]
Converts this ZIO effect into a Monix task.
Converts this ZIO effect into a Monix task.
The conversion is lazy: this effect will only be executed if the returned Monix task is executed. If the returned Monix task is cancelled, the underlying ZIO effect will be interrupted.
- def toMonixTaskUsingRuntime(zioRuntime: Runtime[R]): monix.eval.Task[A]
Converts this ZIO effect into a Monix task using a specified ZIO runtime to run the ZIO effect.
Converts this ZIO effect into a Monix task using a specified ZIO runtime to run the ZIO effect.
This is useful in situations where a Monix task is needed, but executing ZIO effects is incovenient. For example, when using a library API that requires you to pass a function that returns a Monix task. In such situations, you can acquire the ZIO runtime up-front and use this method to create the Monix task.
The conversion is lazy: this effect will only be executed if the returned Monix task is executed. If the returned Monix task is cancelled, the underlying ZIO effect will be interrupted.
- def toString(): String
- Definition Classes
- Any