Registry / utility / kotlinx-coroutines-core-common

kotlinx-coroutines-core-common

JSON →
library1.3.8javamavenunverified

Coroutines support libraries for Kotlin providing common coroutine primitives and utilities for multiplatform projects.

<dependency> <groupId>org.jetbrains.kotlinx</groupId> <artifactId>kotlinx-coroutines-core-common</artifactId> <version>1.3.8</version> </dependency>
INSTALL
IMPORT
SIG · KOTLINX-COROUTINES
K
kotlinx-coroutines-core-common
utilityjavav1.3.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GlobalScope
kotlinx.coroutines.GlobalScope

Minimal example showing how to launch a coroutine using GlobalScope.

import kotlinx.coroutines.GlobalScope import kotlinx.coroutines.delay import kotlinx.coroutines.launch fun main() { GlobalScope.launch { delay(1000L) println("World!") } println("Hello,") Thread.sleep(2000L) }
Debug
Known issues
gotchaGlobalScope is not recommended for production use as it can lead to resource leaks.
fix
Use structured concurrency with CoroutineScope instead of GlobalScope.
affects: *
Upgrade
Version history
1.3.8latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
kotlinx-coroutines-core-common — mvn dependency:get kotlinx-coroutines-core-common · libregistry