kotlinx.coroutines
kotlinx.coroutines copied to clipboard
Library support for Kotlin coroutines
Create a simple suspending rate limiter that delays incoming requests if the limit is reached. The time of delay is calculated on request, and no queue or other synchronization is...
Using coroutines in nodejs, it requires `kotlinx-atomicfu` but there is no `kotlinx-atomicfu` as a dependency in the coroutines package.json. Here is the top part of the `kotlinx-coroutines-core.js`: ```js (function (root,...
currently `job.parentJob` is not exposed, making it harder to build a parent-child relational job graph when debug according to this https://github.com/Kotlin/kotlinx.coroutines/issues/3198 it should be fairly easy(and safe?) to expose that...
JVM: Liberica 11.0.14.1 kotlinx-coroutines-jdk8 1.6.2 kotlinx-coroutines-debug 1.6.2 The following program ``` import kotlinx.coroutines.GlobalScope import kotlinx.coroutines.awaitCancellation import kotlinx.coroutines.debug.DebugProbes import kotlinx.coroutines.launch fun main() { DebugProbes.enableCreationStackTraces = false DebugProbes.install() GlobalScope.launch { launch {...
Is there a Flow equivalent for this Reactive stream operator? I guess it might be derived from the sample operator. Is it possible to implement this operator using only the...
On the [doc for the Main dispatcher](https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-dispatchers/-main.html) it says: - _"On JS and Native it is equivalent to the Default dispatcher."_, which unless I'm mistaken is no longer true with...
I notice @FlowPreview has been removed on all extensions `###.asFlow()` except `() -> T` and `suspend () -> T`. Can we remove it on them?
Enhancement: Add `timeout` operator to Flow This is in response to the updated contribution guidelines, and to push for a `timeout` mechanism for Flow (https://github.com/Kotlin/kotlinx.coroutines/pull/2597). Currently, there is no easy...
I've had this annotation in my code for what seems like two years. How is it not stable yet?
I noticed a discrepancy between the docs of `StateFlow`'s `emit()` function and its `value` property: The docs of StateFlow's `value` property say that > Setting a value that is equal...