kotlinx.coroutines
kotlinx.coroutines copied to clipboard
Library support for Kotlin coroutines
**Describe the bug** When using multiple independent libraries in JS Browser, that each bundle Kotlinx Coroutines, one of them might fail because it tries to use the `WindowDispatcher` created by...
To solve #1205, we changed `runTest` so that it installs a handler to catch all the exceptions flying through the coroutine machinery. However, it's not universally useful: in some elaborate...
The Default dispatcher in JS yields every 16 message, but it is not configurable easily. This is an issue, because the impact in a browser can be dramatic when a...
I'd like to propose introduce new `combineTransformLatest` operator , which behaves like `combineTransform` but cancels transformer if new value arrives. Example: loading places to map; user is moving with map,...
**What broke?** Our current build setup globs all of `kotlinx-coroutines-core/common/src/...` and `kotlinx-coroutines-core/concurrent/src/...` to pass as `-Xcommon-srcs`. When we do this with `-language-version=2.0`, which is stricter about expect/actual declarations, there's a...
… of the unconditional reference of 'kotlinx.coroutines.debug.internal' Was accidentally introduced in #4058 Fixes #4152
**Describe the bug** This seems like an accident. `probeCoroutineCreated` delegates to `kotlin.coroutines.jvm.internal` but `probeCoroutineResumed` delegates to `kotlinx.coroutines.debug.internal`. Should they not point to the same place? It also creates a weird...
The current android build rules [relies on a Google Android maven artifact](https://github.com/Kotlin/kotlinx.coroutines/blob/master/ui/kotlinx-coroutines-android/build.gradle.kts#L17) which has not been updated in ~8 years. This is very deprecated as described [here](https://stackoverflow.com/questions/34338628/android-maven-plugin-sdk-version) Due to this...
One of the pieces of #4133. @fzhinkin, could you take a look?
**Use case** I have a Java async API that lets me set a callback and clear it. Cancelling that API means clearing the callback, but the API to clear the...