Platform

object Platform extends PlatformSpecific
trait PlatformSpecific
class Object
trait Matchable
class Any

Value members

Inherited methods

final 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
final def addSignalHandler(signal: String, action: () => Unit): 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.

Inherited from:
PlatformSpecific
final def exit(code: Int): Unit

Exits the application with the specified exit code.

Exits the application with the specified exit code.

Inherited from:
PlatformSpecific
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
final def newConcurrentSet[A](): Set[A]
Inherited from:
PlatformSpecific
final def newConcurrentWeakSet[A](): Set[A]
Inherited from:
PlatformSpecific
final def newWeakHashMap[A, B](): Map[A, B]
Inherited from:
PlatformSpecific
final def newWeakReference[A](value: A): () => A
Inherited from:
PlatformSpecific
final def newWeakSet[A](): Set[A]
Inherited from:
PlatformSpecific

Inherited fields

final val isJS: false

Returns whether the current platform is ScalaJS.

Returns whether the current platform is ScalaJS.

Inherited from:
PlatformSpecific
final val isJVM: true

Returns whether the currently platform is the JVM.

Returns whether the currently platform is the JVM.

Inherited from:
PlatformSpecific
final val isNative: false

Returns whether the currently platform is Scala Native.

Returns whether the currently platform is Scala Native.

Inherited from:
PlatformSpecific