Platform

object Platform
Companion:
class
class Object
trait Matchable
class Any

Type members

Classlikes

abstract class Proxy(self: Platform) extends Platform

Value members

Inherited methods

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.

Inherited from:
PlatformSpecific (hidden)
final def fromExecutionContext(ec: ExecutionContext): Platform

Creates a Platform from an execution context.

Creates a Platform from an execution context.

Inherited from:
PlatformSpecific (hidden)
final def fromExecutor(executor0: Executor): Platform

Creates a platform from an Executor.

Creates a platform from an Executor.

Inherited from:
PlatformSpecific (hidden)
final def getCurrentThreadGroup: String

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

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

Inherited from:
PlatformSpecific (hidden)
def makeDefault(yieldOpCount: Int): Platform

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

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

Inherited from:
PlatformSpecific (hidden)
final def newConcurrentSet[A](): Set[A]
Inherited from:
PlatformSpecific (hidden)
final def newConcurrentWeakSet[A](): Set[A]
Inherited from:
PlatformSpecific (hidden)
final def newWeakHashMap[A, B](): Map[A, B]
Inherited from:
PlatformSpecific (hidden)
final def newWeakReference[A](value: A): () => A
Inherited from:
PlatformSpecific (hidden)
final def newWeakSet[A](): Set[A]
Inherited from:
PlatformSpecific (hidden)

Inherited fields

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.

Inherited from:
PlatformSpecific (hidden)
lazy val default: Platform

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.

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.

Inherited from:
PlatformSpecific (hidden)
final val defaultYieldOpCount: 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.

Inherited from:
PlatformSpecific (hidden)
lazy val global: Platform

A Platform created from Scala's global execution context.

A Platform created from Scala's global execution context.

Inherited from:
PlatformSpecific (hidden)
val isJS: Boolean

Returns whether the current platform is ScalaJS.

Returns whether the current platform is ScalaJS.

Inherited from:
PlatformSpecific (hidden)
val isJVM: Boolean

Returns whether the currently platform is the JVM.

Returns whether the currently platform is the JVM.

Inherited from:
PlatformSpecific (hidden)
val isNative: Boolean

Returns whether the currently platform is Scala Native.

Returns whether the currently platform is Scala Native.

Inherited from:
PlatformSpecific (hidden)