implicit final class ZIOObjOps extends AnyVal
- Alphabetic
- By Inheritance
- ZIOObjOps
- 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 fromMonixTask[A](monixTask: monix.eval.Task[A], executionModel: ExecutionModel = ExecutionModel.Default)(implicit trace: Trace): Task[A]
Converts a Monix task into a ZIO task.
Converts a Monix task into a ZIO task.
Interrupting the returned effect will cancel the underlying Monix task. The conversion is lazy: the Monix task is only executed if the returned ZIO task is executed.
- monixTask
The Monix task.
- executionModel
The Monix execution model to use for the Monix execution. This only need be specified if you want to override the Monix default.
- def fromMonixTaskBlocking[A](monixTask: monix.eval.Task[A], executionModel: ExecutionModel = ExecutionModel.Default)(implicit trace: Trace): Task[A]
Converts a blocking Monix task into a ZIO task.
Converts a blocking Monix task into a ZIO task.
This is needed for Monix tasks that may block the thread, and should therefore be executed using ZIO's blocking executor.
Interrupting the returned effect will cancel the underlying Monix task. The conversion is lazy: the Monix task is only executed if the returned ZIO task is executed.
- monixTask
The Monix task.
- executionModel
The Monix execution model to use for the Monix execution. This only need be specified if you want to override the Monix default.
- def fromMonixTaskBlockingWithScheduler[A](monixTask: (monix.execution.Scheduler) => monix.eval.Task[A], executionModel: ExecutionModel = ExecutionModel.Default)(implicit trace: Trace): Task[A]
Constructs a blocking Monix task using the Monix scheduler, and converts it into a ZIO task.
Constructs a blocking Monix task using the Monix scheduler, and converts it into a ZIO task.
This is needed for Monix tasks that may block the thread, and should therefore be executed using ZIO's blocking executor.
Interrupting the returned effect will cancel the underlying Monix task. The conversion is lazy: the Monix task is only executed if the returned ZIO task is executed.
- monixTask
Function to construct a Monix task given a Monix scheduler.
- executionModel
The Monix execution model to use for the Monix execution. This only need be specified if you want to override the Monix default.
- def fromMonixTaskUsingScheduler[A](monixTask: monix.eval.Task[A])(implicit trace: Trace, monixScheduler: monix.execution.Scheduler): Task[A]
Converts a Monix task into a ZIO task using a specified Monix scheduler.
Converts a Monix task into a ZIO task using a specified Monix scheduler.
Interrupting the returned effect will cancel the underlying Monix task. The conversion is lazy: the Monix task is only executed if the returned ZIO task is executed.
- monixTask
The Monix task.
- monixScheduler
The Monix scheduler to use to execute the Monix task.
- def fromMonixTaskWithScheduler[A](monixTask: (monix.execution.Scheduler) => monix.eval.Task[A], executionModel: ExecutionModel = ExecutionModel.Default)(implicit trace: Trace): Task[A]
Constructs a Monix task using the Monix scheduler, and converts it into a ZIO task.
Constructs a Monix task using the Monix scheduler, and converts it into a ZIO task.
Interrupting the returned effect will cancel the underlying Monix task. The conversion is lazy: the Monix task is only executed if the returned ZIO task is executed.
- monixTask
Function to construct a Monix task given a Monix scheduler.
- executionModel
The Monix execution model to use for the Monix execution. This only need be specified if you want to override the Monix default.
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def monixBlockingScheduler(executionModel: ExecutionModel = ExecutionModel.Default)(implicit trace: Trace): UIO[monix.execution.Scheduler]
Provides a Monix scheduler built on the ZIO blocking executor.
Provides a Monix scheduler built on the ZIO blocking executor.
- executionModel
Provide this if you want to override the default Monix execution model.
- def monixScheduler(executionModel: ExecutionModel = ExecutionModel.Default)(implicit trace: Trace): UIO[monix.execution.Scheduler]
Provides a Monix scheduler built on the ZIO executor.
Provides a Monix scheduler built on the ZIO executor.
- executionModel
Provide this if you want to override the default Monix execution model.
- def toString(): String
- Definition Classes
- Any