Packages

c

zio.interop.monix

ZIOObjOps

implicit final class ZIOObjOps extends AnyVal

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ZIOObjOps
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ZIOObjOps(unused: ZIO.type)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. 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.

  6. 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.

  7. 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.

  8. 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.

  9. 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.

  10. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. 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.

  13. 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.

  14. def toString(): String
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped