Packages

object IORuntime extends IORuntimeCompanionPlatform

Source
IORuntime.scala
Linear Supertypes
IORuntimeCompanionPlatform, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IORuntime
  2. IORuntimeCompanionPlatform
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def apply(compute: ExecutionContext, blocking: ExecutionContext, scheduler: Scheduler, shutdown: () => Unit, config: IORuntimeConfig): IORuntime
  2. def builder(): IORuntimeBuilder
  3. def createDefaultBlockingExecutionContext(threadPrefix: String = "io-blocking"): (ExecutionContext, () => Unit)
    Definition Classes
    IORuntimeCompanionPlatform
  4. def createDefaultScheduler(threadPrefix: String = "io-scheduler"): (Scheduler, () => Unit)
    Definition Classes
    IORuntimeCompanionPlatform
  5. def createWorkStealingComputeThreadPool(threads: Int = Math.max(2, Runtime.getRuntime().availableProcessors()), threadPrefix: String = "io-compute", blockerThreadPrefix: String = DefaultBlockerPrefix, runtimeBlockingExpiration: Duration = 60.seconds, reportFailure: (Throwable) => Unit = _.printStackTrace(), blockedThreadDetectionEnabled: Boolean = false): (WorkStealingThreadPool, () => Unit)
    Definition Classes
    IORuntimeCompanionPlatform
  6. def global: IORuntime
    Definition Classes
    IORuntimeCompanionPlatform

Deprecated Value Members

  1. def createDefaultComputeThreadPool(self: () => IORuntime, threads: Int, threadPrefix: String): (WorkStealingThreadPool, () => Unit)
    Definition Classes
    IORuntimeCompanionPlatform
    Annotations
    @deprecated
    Deprecated

    (Since version 3.3.13) bincompat shim for previous default method overload

  2. def createDefaultComputeThreadPool(self: => IORuntime, threads: Int = Math.max(2, Runtime.getRuntime().availableProcessors()), threadPrefix: String = "io-compute", blockerThreadPrefix: String = DefaultBlockerPrefix): (WorkStealingThreadPool, () => Unit)
    Definition Classes
    IORuntimeCompanionPlatform
    Annotations
    @deprecated
    Deprecated

    (Since version 3.4.0) Replaced by the simpler and safer createWorkStealingComputePool

  3. def createWorkStealingComputeThreadPool(threads: Int, threadPrefix: String, blockerThreadPrefix: String, runtimeBlockingExpiration: Duration, reportFailure: (Throwable) => Unit): (WorkStealingThreadPool, () => Unit)
    Definition Classes
    IORuntimeCompanionPlatform
    Annotations
    @deprecated
    Deprecated

    (Since version 3.5.0) Preserved for binary-compatibility