Package-level declarations

Types

Link copied to clipboard

Properties

Link copied to clipboard

Copyright 2014-2019 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. From https://github.com/ktorio/ktor/blob/6cd529b2dcedfcfc4ca2af0f62704764e160d7fd/ktor-utils/js/src/io/ktor/util/PlatformUtilsJs.kt#L16

Functions

Link copied to clipboard
actual fun currentThreadId(): String
expect fun currentThreadId(): String
actual fun currentThreadId(): String
actual fun currentThreadId(): String
actual fun currentThreadId(): String
Link copied to clipboard

The current thread name ("main" for the main thread). Used for debugging.

Link copied to clipboard

The current time as a human-readable String. Used for debugging.

Link copied to clipboard
actual fun currentTimeMillis(): Long
expect fun currentTimeMillis(): Long
actual fun currentTimeMillis(): Long
actual fun currentTimeMillis(): Long
actual fun currentTimeMillis(): Long
Link copied to clipboard
actual fun platform(): Platform
expect fun platform(): Platform

The current platform. This is used from tests because Double.toString() doesn't behave the same on JS and other platforms. Prefer more specific functions like assertMainThreadOnNative when possible instead of checking the platform.

actual fun platform(): Platform
actual fun platform(): Platform
actual fun platform(): Platform