kotlinx.coroutines icon indicating copy to clipboard operation
kotlinx.coroutines copied to clipboard

Library support for Kotlin coroutines

Results 367 kotlinx.coroutines issues
Sort by recently updated
recently updated
newest added
trafficstars

**What do we have now?** I want to return a `CompletableDeferred` from a public API. I am returning it as a `Deferred` as I don't want the consumer of the...

enhancement

We have a report in public Slack about very slow CMP application: https://kotlinlang.slack.com/archives/C0346LWVBJ4/p1732321550585009 Luckily, the user provided an instrument profile trace, and, it's visible that some huge chunks of work...

native

**Use case** I have a flow of data, which is sent to http stream. I want to have some keep-alive pings in this stream, i.e. send en empty event, if...

enhancement
flow

The current state of things: * `kotlinx.coroutines.withTimeout` is considered harmful -- it throws CE where it should throw TE. Enough has been written on this topic, so I won't elaborate...

## Old Implementation In the old implementation counters were used to track how many pointers reference each segment. When a pointer moves to the next live segment, the counter of...

Historically, the library evolved using "a Long of milliseconds" as the standard of denoting durations. Since then, `kotlin.time.Duration` appeared, encompassing a number of useful conversions. There are several consequences to...

**Describe the bug** When collecting a `channelFlow` that was `flowOn`-d a `ThreadContextElement`, while preventing fusion, the associated `ThreadContextElement` is not always properly restored afterwards until the next suspension point. The...

bug
flow

Issue: Cannot run instrumented tests when `enableAndroidTestCoverage` is set to true while using coroutines 1.10.0+. I tried 1.9.0 and it works fine. ``` * What went wrong: Execution failed for...

question

After bumping the library version to 1.10.1 and running my unit tests i'm getting an error: Dispatchers.Main was accessed when the platform dispatcher was absent and the test dispatcher was...

question
waiting for clarification
test

**Describe the bug** The supervisorScope is designed to prevent child coroutine failures from propagating up and crashing the parent. However, when a child coroutine is launched within a withContext block...

docs