Platform

zio.internal.Platform
object Platform

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Platform.type

Members list

Value members

Inherited methods

final def addShutdownHook(action: () => Unit)(implicit unsafe: Unsafe): Unit

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

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

Attributes

Inherited from:
PlatformSpecific (hidden)
final def addSignalHandler(signal: String, action: () => Unit)(implicit unsafe: Unsafe): Unit

Adds a signal handler for the specified signal (e.g. "INFO"). This method never fails even if adding the handler fails.

Adds a signal handler for the specified signal (e.g. "INFO"). This method never fails even if adding the handler fails.

On Scala.js, signal handlers are triggered by changing the hash of the URL to include "zio-signal=INFO" (for the "INFO" signal).

Attributes

Inherited from:
PlatformSpecific (hidden)
final def exit(code: Int)(implicit unsafe: Unsafe): Unit

Exits the application with the specified exit code.

Exits the application with the specified exit code.

Attributes

Inherited from:
PlatformSpecific (hidden)
final def getCurrentThreadGroup()(implicit unsafe: Unsafe): 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.

Attributes

Inherited from:
PlatformSpecific (hidden)
final def newConcurrentMap[A, B]()(implicit unsafe: Unsafe): Map[A, B]

Attributes

Inherited from:
PlatformSpecific (hidden)
final def newConcurrentSet[A]()(implicit unsafe: Unsafe): Set[A]

Attributes

Inherited from:
PlatformSpecific (hidden)
final def newConcurrentWeakSet[A]()(implicit unsafe: Unsafe): Set[A]

Attributes

Inherited from:
PlatformSpecific (hidden)
final def newWeakHashMap[A, B]()(implicit unsafe: Unsafe): Map[A, B]

Attributes

Inherited from:
PlatformSpecific (hidden)
final def newWeakReference[A](value: A)(implicit unsafe: Unsafe): () => A

Attributes

Inherited from:
PlatformSpecific (hidden)
final def newWeakSet[A]()(implicit unsafe: Unsafe): Set[A]

Attributes

Inherited from:
PlatformSpecific (hidden)

Inherited fields

final val isJS: true

Returns whether the current platform is ScalaJS.

Returns whether the current platform is ScalaJS.

Attributes

Inherited from:
PlatformSpecific (hidden)
final val isJVM: false

Returns whether the currently platform is the JVM.

Returns whether the currently platform is the JVM.

Attributes

Inherited from:
PlatformSpecific (hidden)
final val isNative: false

Returns whether the currently platform is Scala Native.

Returns whether the currently platform is Scala Native.

Attributes

Inherited from:
PlatformSpecific (hidden)