Kotlin/kotlinx.coroutines là một trong những repo tập trung di động mà TopGit theo dõi, hiện có 13.8k sao, viết chủ yếu bằng Kotlin. Library support for Kotlin coroutines
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
launch and async coroutine builders returning Job and Deferred light-weight futures with cancellation support;
Dispatchers object with Main dispatcher for Android/Swing/JavaFx (which require the corresponding artifacts in runtime) and Darwin (included out of the box), and Default dispatcher for background coroutines;
delay and yield top-level suspending functions;
Flow — cold asynchronous stream with flow builder and comprehensive operator set (filter, map, etc);
Channel, Mutex, and Semaphore communication and synchronization primitives;
coroutineScope, supervisorScope, withContext, and withTimeout scope builders;
MainScope() for Android and UI applications;
SupervisorJob() and CoroutineExceptionHandler for supervision of coroutines hierarchies;
select expression support and more.
core/jvm — additional core features available on Kotlin/JVM:
Dispatchers.IO dispatcher for blocking coroutines;
Executor.asCoroutineDispatcher extension, custom thread pools, and more;
Integrations with CompletableFuture and JVM-specific extensions.
core/web — additional core features available on Kotlin/JS and Kotlin/Wasm/JS:
Integration with Promise via Promise.await and promise builder.
core/js — additional core features available on Kotlin/JS:
Integration with Window via Window.asCoroutineDispatcher, etc.
test — test utilities for coroutines:
Dispatchers.setMain to override Dispatchers.Main in tests;
runTest and TestScope to test suspending functions and coroutines.
debug — debug utilities for coroutines:
DebugProbes API to probe, keep track of, print and dump active coroutines;
CoroutinesTimeout test rule to automatically dump coroutines on test timeout.
Automatic integration with BlockHound.
reactive — modules that provide builders and iteration support for various reactive streams libraries:
And make sure that you use the latest Kotlin version:
plugins {
// For build.gradle.kts (Kotlin DSL)
kotlin("jvm") version "2.2.20"
// For build.gradle (Groovy DSL)
id "org.jetbrains.kotlin.jvm" version "2.2.20"
}
Make sure that you have mavenCentral() in the list of repositories:
repositories {
mavenCentral()
}
Android
Add kotlinx-coroutines-android
module as a dependency when using kotlinx.coroutines on Android:
This gives you access to the Android Dispatchers.Main
coroutine dispatcher and also makes sure that in case of a crashed coroutine with an unhandled exception that
this exception is logged before crashing the Android application, similarly to the way uncaught exceptions in
threads are handled by the Android runtime.
R8 and ProGuard
R8 and ProGuard rules are bundled into the kotlinx-coroutines-android module.
For more details see "Optimization" section for Android.
Avoiding including the debug infrastructure in the resulting APK
The kotlinx-coroutines-core artifact contains a resource file that is not required for the coroutines to operate
normally and is only used by the debugger. To exclude it at no loss of functionality, add the following snippet to the
android block in your Gradle file for the application subproject:
Core modules of kotlinx.coroutines are also available for
Kotlin/JS and Kotlin/Native.
In common code that should get compiled for different platforms, you can add a dependency to kotlinx-coroutines-core right to the commonMain source set:
Platform-specific dependencies are recommended to be used only for non-multiplatform projects that are compiled only for target platform.
JS
Kotlin/JS version of kotlinx.coroutines is published as
kotlinx-coroutines-core-js
(follow the link to get the dependency declaration snippet).
Native
Kotlin/Native version of kotlinx.coroutines is published as
kotlinx-coroutines-core-$platform where $platform is
the target Kotlin/Native platform.
Targets are provided in accordance with official K/N target support.
Kotlin/kotlinx.coroutines thuộc nhóm Mobile trên TopGit, cùng 3 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về Kotlin/kotlinx.coroutines ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/Kotlin/kotlinx.coroutines là nguồn chính thức.
Kotlin/kotlinx.coroutines có bao nhiêu sao?
Kotlin/kotlinx.coroutines có 13.8k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/Kotlin/kotlinx.coroutines. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
Kotlin/kotlinx.coroutines có phải mã nguồn mở không?
Có — Kotlin/kotlinx.coroutines phát hành theo license Apache-2.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/Kotlin/kotlinx.coroutines.
Kotlin/kotlinx.coroutines có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho Kotlin/kotlinx.coroutines. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
Kotlin/kotlinx.coroutines là gì?
Kotlin/kotlinx.coroutines (Kotlin/kotlinx.coroutines) là dự án Kotlin trên GitHub. Theo mô tả gốc: Library support for Kotlin coroutines
Kotlin/kotlinx.coroutines so với các dự án Mobile khác thế nào?
Kotlin/kotlinx.coroutines được TopGit xếp vào nhóm Mobile, với 13.8k sao GitHub và viết bằng Kotlin. Xem trang chủ đề Mobile trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
Đọc đầy đủ README ở tab phía trên.
kotlinx.coroutines có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về kotlinx.coroutines.