Trait/Object

zio

Runtime

Related Docs: object Runtime | package zio

Permalink

trait Runtime[+R] extends AnyRef

A Runtime[R] is capable of executing tasks within an environment R.

Self Type
Runtime[R]
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Runtime
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def environment: ZEnvironment[R]

    Permalink

    The environment of the runtime.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def as[R1](r1: ZEnvironment[R1]): Runtime[R1]

    Permalink

    Constructs a new Runtime with the specified new environment.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def blockingExecutor: Executor

    Permalink
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def executor: Executor

    Permalink
  11. def fiberRefs: FiberRefs

    Permalink

    The FiberRef values that will be used for workflows executed by the runtime.

  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def flags: Set[RuntimeFlag]

    Permalink
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. def isFatal(t: Throwable): Boolean

    Permalink
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def loggers: Set[ZLogger[String, Any]]

    Permalink
  19. def map[R1](f: (ZEnvironment[R]) ⇒ ZEnvironment[R1]): Runtime[R1]

    Permalink

    Constructs a new Runtime by mapping the environment.

  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def reportFatal(t: Throwable): Nothing

    Permalink
  24. final def run[E, A](zio: ZIO[R, E, A])(implicit trace: Trace): IO[E, A]

    Permalink

    Runs the effect "purely" through an async boundary.

    Runs the effect "purely" through an async boundary. Useful for testing.

  25. final def supervisors: Set[Supervisor[Any]]

    Permalink
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  28. final def unsafeRun[E, A](zio: ZIO[R, E, A])(implicit trace: Trace): A

    Permalink

    Executes the effect synchronously, failing with zio.FiberFailure if there are any errors.

    Executes the effect synchronously, failing with zio.FiberFailure if there are any errors. May fail on Scala.js if the effect cannot be entirely run synchronously.

    This method is effectful and should only be done at the edges of your program.

  29. final def unsafeRunAsync[E, A](zio: ZIO[R, E, A])(implicit trace: Trace): Unit

    Permalink

    Executes the effect asynchronously, discarding the result of execution.

    Executes the effect asynchronously, discarding the result of execution.

    This method is effectful and should only be invoked at the edges of your program.

  30. final def unsafeRunAsyncCancelable[E, A](zio: ZIO[R, E, A])(k: (Exit[E, A]) ⇒ Any)(implicit trace: Trace): (FiberId) ⇒ Exit[E, A]

    Permalink

    Executes the effect asynchronously, eventually passing the exit value to the specified callback.

    Executes the effect asynchronously, eventually passing the exit value to the specified callback. It returns a callback, which can be used to interrupt the running execution.

    This method is effectful and should only be invoked at the edges of your program.

  31. final def unsafeRunAsyncWith[E, A](zio: ZIO[R, E, A])(k: (Exit[E, A]) ⇒ Any)(implicit trace: Trace): Unit

    Permalink

    Executes the effect asynchronously, eventually passing the exit value to the specified callback.

    Executes the effect asynchronously, eventually passing the exit value to the specified callback.

    This method is effectful and should only be invoked at the edges of your program.

  32. final def unsafeRunSync[E, A](zio0: ZIO[R, E, A])(implicit trace: Trace): Exit[E, A]

    Permalink

    Executes the effect asynchronously, eventually passing the exit value to the specified callback.

    Executes the effect asynchronously, eventually passing the exit value to the specified callback. It returns a callback, which can be used to interrupt the running execution.

    This method is effectful and should only be invoked at the edges of your program.

  33. final def unsafeRunTask[A](task: RIO[R, A])(implicit trace: Trace): A

    Permalink

    Executes the Task/RIO effect synchronously, failing with the original Throwable on both Cause.Fail and Cause.Die.

    Executes the Task/RIO effect synchronously, failing with the original Throwable on both Cause.Fail and Cause.Die. In addition, appends a new element to the Throwables "caused by" chain, with this Cause "pretty printed" (in stackless mode) as the message. May fail on Scala.js if the effect cannot be entirely run synchronously.

    This method is effectful and should only be done at the edges of your program.

  34. final def unsafeRunToFuture[E <: Throwable, A](zio: ZIO[R, E, A])(implicit trace: Trace): CancelableFuture[A]

    Permalink

    Runs the IO, returning a Future that will be completed when the effect has been executed.

    Runs the IO, returning a Future that will be completed when the effect has been executed.

    This method is effectful and should only be used at the edges of your program.

  35. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped