Registry / utility / kotlinx-coroutines-core-jvm

kotlinx-coroutines-core-jvm

JSON →
library1.9.0javamavenunverified

Core coroutine support library for Kotlin on the JVM, providing async programming primitives.

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

Launch a coroutine using GlobalScope

import kotlinx.coroutines.GlobalScope; import kotlinx.coroutines.launch; public class Main { public static void main(String[] args) { GlobalScope.launch(() -> { System.out.println("Hello from coroutine!"); }); } }
Debug
Known issues
gotchaGlobalScope is not recommended for production use as it can lead to resource leaks. Prefer structured concurrency with CoroutineScope.
fix
Use a custom CoroutineScope with a SupervisorJob or use lifecycle-aware scopes.
affects: *
Upgrade
Version history
1.9.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

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