kotlinx.coroutines
kotlinx.coroutines copied to clipboard
Library support for Kotlin coroutines
CancellableContinuationImpl.getParentHandle/setParentHandle ``` WARNING: ThreadSanitizer: data race (pid=88874) Read of size 8 at 0x7b1400020b60 by thread T3: #0 kfun:kotlinx.coroutines.CancellableContinuationImpl.#internal CancellableContinuationImpl.kt:75 (newMM.kexe:x86_64+0x10019410b) #1 kfun:kotlinx.coroutines.CancellableContinuationImpl#detachChild(){} CancellableContinuationImpl.kt:495 (newMM.kexe:x86_64+0x10019affb) #2 kfun:kotlinx.coroutines.CancellableContinuationImpl.detachChildIfNonResuable#internal CancellableContinuationImpl.kt:488 (newMM.kexe:x86_64+0x10019af32) #3 kfun:kotlinx.coroutines.CancellableContinuationImpl#cancel(kotlin.Throwable?){}kotlin.Boolean...
To significantly simplify maintenance and implementation of new features for `kotlinx.coroutines` 1.7.0. The new memory model will be enabled by default in Kotlin 1.7.20, and the old one will likely...
### Problem Description The Kotlin StdLib contains a function named `runCatching`. It tries the provided lambda and catches any `Throwable` that is not caught or thrown by the lambda. However,...
The `delay` function claims to provide a prompt cancellation guarantee, but, if the duration passed to `delay` is `0`, the function simply returns without doing anything and, in particular, without...
This is the product of some library design work we've been doing at Google, and we wanted to take this upstream in case there was interest. The `Flow` API is...
Is there an operator to zip a list of Flow ? Similar to `combine` except it will "group" items together instead of emitting the last items as soon as a...
Duplicating the content of https://youtrack.jetbrains.com/issue/KT-45502 for further discussion and use-cases. === I have a pattern that I use often while developing an UI (in Compose). The current Flow API lacks...
Currently Flow supports only buffer operator with capacity. It would be useful to buffer elements within specified time range. ```flow.buffer(Duration.ofSeconds(5)).collect {...}```
When I upgrade from coroutines 1.5.2 to 1.6.4 (or any 1.6 release), certain tests of our project fails on an unknown error. Repository: https://github.com/marykdb/maryk/tree/update_coroutines Gradle command for relevant tests: ```./gradlew...
OVERVIEW The Java `Throwable` interface implements `Serializable`. However, certain coroutines classes such as `kotlinx.coroutines.CoroutinesInternalError` do not correctly implement `Serializable` and will cause an exception to be thrown if serialization is...