kotlinx.coroutines
kotlinx.coroutines copied to clipboard
Library support for Kotlin coroutines
**Describe the bug** The `cancel` operation on the channel returned by the `produce` function, when used together with `awaitClose`, leads to a data race: - If `cancel` only manages to...
**Describe the bug** When building a GraalVM native image against coroutines `1.9.0-RC`, things mostly work but the following crash occurs under some conditions, for us with use of [Mosaic](https://github.com/JakeWharton/mosaic) and...
### Considerations > - Did you check the latest version of the library? Yes > * Do you actually *need* this feature? Maybe restructuring your code would neatly eliminate the...
**Use case** There are different activities in IJ: - those which are run on their own: startup activities, heavy sync which are triggered by external file change, timeout activities, e.g....
In a matter of removing w3c declarations from WasmJs stdlib we need to remove its usages from the coroutines.
**Describe the bug** `kotlinx-datetime` was given new and updated documentation... `kotlinx-corotoutines` could also benefit from the same treatment. **Provide a Reproducer** Going through the list from `kotlinx-datetime` (https://github.com/Kotlin/kotlinx-datetime/issues/347): * Extensively...
**Describe the bug** When replacing the Main Dispatcher with a TestDispatcher, tests are not failing as expected. I've provided an example below which showcases the issue. When the Main Dispatcher...
Steps to reproduce: ``` flowOf(1, 2, 3) .flowOn(Dispatchers.Main.immediate) // Should be not present in the classpath .collect { println("collect: $it") } ``` Original report: https://github.com/JetBrains/compose-multiplatform/issues/4835
This is a follow-up on #4084 and #3983 and an implementation of a different approach. In #4084 the main idea was to try to preserve the parallelism by transferring the...
Fixes #3886 One of the steps for #3887 A draft because * it's undertested * and underdocumented, * it approximately doubles the memory consumption of `JobSupport`.