o

zio.internal

Platform

object Platform extends PlatformSpecific

Linear Supertypes
PlatformSpecific, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Platform
  2. PlatformSpecific
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addShutdownHook(action: () => Unit): Unit

    Adds a shutdown hook that executes the specified action on shutdown.

    Adds a shutdown hook that executes the specified action on shutdown.

    Definition Classes
    PlatformSpecific
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def exit(code: Int): Unit

    Exits the application with the specified exit code.

    Exits the application with the specified exit code.

    Definition Classes
    PlatformSpecific
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. val getCurrentThreadGroup: String

    Returns the name of the thread group to which this thread belongs.

    Returns the name of the thread group to which this thread belongs. This is a side-effecting method.

    Definition Classes
    PlatformSpecific
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. val isJS: Boolean

    Returns whether the current platform is ScalaJS.

    Returns whether the current platform is ScalaJS.

    Definition Classes
    PlatformSpecific
  16. val isJVM: Boolean

    Returns whether the currently platform is the JVM.

    Returns whether the currently platform is the JVM.

    Definition Classes
    PlatformSpecific
  17. val isNative: Boolean

    Returns whether the currently platform is Scala Native.

    Returns whether the currently platform is Scala Native.

    Definition Classes
    PlatformSpecific
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def newConcurrentSet[A](): Set[A]
    Definition Classes
    PlatformSpecific
  20. final def newConcurrentWeakSet[A](): Set[A]
    Definition Classes
    PlatformSpecific
  21. final def newWeakHashMap[A, B](): Map[A, B]
    Definition Classes
    PlatformSpecific
  22. final def newWeakReference[A](value: A): () => A
    Definition Classes
    PlatformSpecific
  23. final def newWeakSet[A](): Set[A]
    Definition Classes
    PlatformSpecific
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. lazy val benchmark: RuntimeConfig

    A Runtime with settings suitable for benchmarks, specifically with Tracing and auto-yielding disabled.

    A Runtime with settings suitable for benchmarks, specifically with Tracing and auto-yielding disabled.

    Tracing adds a constant ~2x overhead on FlatMaps, however, it's an optional feature and it's not valid to compare the performance of ZIO with enabled Tracing with effect types _without_ a comparable feature.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use RuntimeConfig.benchmark

  2. lazy val default: RuntimeConfig

    The default platform, configured with settings designed to work well for mainstream usage.

    The default platform, configured with settings designed to work well for mainstream usage. Advanced users should consider making their own platform customized for specific application requirements.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use RuntimeConfig.default

  3. final val defaultYieldOpCount: Int(2048)

    The default number of operations the ZIO runtime should execute before yielding to other fibers.

    The default number of operations the ZIO runtime should execute before yielding to other fibers.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use RuntimeConfig.defaultYieldOpCount

  4. final def fromExecutionContext(ec: ExecutionContext, yieldOpCount: Int = 2048): Platform

    Creates a Platform from an execution context.

    Creates a Platform from an execution context.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use RuntimeConfig.fromExecutionContext

  5. final def fromExecutor(executor0: Executor): Platform

    Creates a platform from an Executor.

    Creates a platform from an Executor.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use RuntimeConfig.fromExecutor

  6. lazy val global: RuntimeConfig

    A Platform created from Scala's global execution context.

    A Platform created from Scala's global execution context.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use RuntimeConfig.global

  7. final def makeDefault(yieldOpCount: Int = 2048): Platform

    Makes a new default platform.

    Makes a new default platform. This is a side-effecting method.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use RuntimeConfig.makeDefault

Inherited from PlatformSpecific

Inherited from AnyRef

Inherited from Any

Ungrouped