Registry / utility / kotlinx-coroutines-core

kotlinx-coroutines-core

JSON →
library1.10.2javamavenunverified

Kotlinx Coroutines Core provides coroutine support for Kotlin, enabling asynchronous programming.

<dependency> <groupId>org.jetbrains.kotlinx</groupId> <artifactId>kotlinx-coroutines-core</artifactId> <version>1.10.2</version> </dependency>
INSTALL
IMPORT
SIG · KOTLINX-COROUTINES
K
kotlinx-coroutines-core
utilityjavav1.10.2
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

Launches a coroutine that prints 'World!' after a delay.

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 structured concurrency with CoroutineScope.
fix
Replace GlobalScope with a custom CoroutineScope tied to a lifecycle.
affects: *
Upgrade
Version history
1.10.2latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
14
Amazon
1
Resources
kotlinx-coroutines-core — mvn dependency:get kotlinx-coroutines-core · libregistry