object Platform extends PlatformSpecific
- Alphabetic
- By Inheritance
- Platform
- PlatformSpecific
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
lazy val
benchmark: Platform
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.
- Definition Classes
- PlatformSpecific
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
lazy val
default: Platform
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.
- Definition Classes
- PlatformSpecific
-
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.
- Definition Classes
- PlatformSpecific
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
fromExecutionContext(ec: ExecutionContext, yieldOpCount: Int = 2048): Platform
Creates a Platform from an execution context.
Creates a Platform from an execution context.
- Definition Classes
- PlatformSpecific
-
final
def
fromExecutor(executor0: Executor): Platform
Creates a platform from an
Executor
.Creates a platform from an
Executor
.- Definition Classes
- PlatformSpecific
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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
-
lazy val
global: Platform
A
Platform
created from Scala's global execution context.A
Platform
created from Scala's global execution context.- Definition Classes
- PlatformSpecific
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
isJS: Boolean
Returns whether the current platform is ScalaJS.
Returns whether the current platform is ScalaJS.
- Definition Classes
- PlatformSpecific
-
val
isJVM: Boolean
Returns whether the currently platform is the JVM.
Returns whether the currently platform is the JVM.
- Definition Classes
- PlatformSpecific
-
val
isNative: Boolean
Returns whether the currently platform is Scala Native.
Returns whether the currently platform is Scala Native.
- Definition Classes
- PlatformSpecific
-
final
def
makeDefault(yieldOpCount: Int = defaultYieldOpCount): Platform
Makes a new default platform.
Makes a new default platform. This is a side-effecting method.
- Definition Classes
- PlatformSpecific
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
newConcurrentSet[A](): Set[A]
- Definition Classes
- PlatformSpecific
-
final
def
newConcurrentWeakSet[A](): Set[A]
- Definition Classes
- PlatformSpecific
-
final
def
newWeakHashMap[A, B](): Map[A, B]
- Definition Classes
- PlatformSpecific
-
final
def
newWeakReference[A](value: A): () ⇒ A
- Definition Classes
- PlatformSpecific
-
final
def
newWeakSet[A](): Set[A]
- Definition Classes
- PlatformSpecific
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()