kotlinx.coroutines
kotlinx.coroutines copied to clipboard
Library support for Kotlin coroutines
**Describe the bug** The webview is blocked. **Provide a Reproducer** git clone https://github.com/OmicoDev/wwm/tree/optimize-loading-font-on-wasm Run `wwm.web.run` run configuration. See the browser console.
Fixes #3326 Uses #4174 as a reference
**Describe the bug** A guy promises to an old lady that he'll fix a broken staircase, but then arrives to the house and notices that it's in complete disrepair. He...
**Use case** I have a complex `Flow` that possesses many elements. I have a business rule that is, literally, to do something if any of them satisfies a condition. If...
**Describe the bug** During the review of https://github.com/Kotlin/kotlinx.coroutines/pull/4181, it became evident that we don't properly handle failures in coroutine dispatchers, and this can surface in ways other than just strange-looking...
…ternal errors Fix #4091
## Use-case I'm writing a multiplatform library using coroutines and one of the targets is JS. It is expected that the JS build of the library will be used from...
`CoroutineDispatcher.invoke`, a function used as such: ```kotlin Dispatchers.IO { stuff } ``` is a shorter version of `withContext` that only works with dispatchers. Does this function need to exist? It...
Hello, please consider the following example: ```kotlin fun main(args: Array) = runBlocking { launch(coroutineContext + CommonPool, start = CoroutineStart.UNDISPATCHED) { println("I am in ${Thread.currentThread().name}") withContext(CommonPool) { println("I am in ${Thread.currentThread().name}")...
I'm working on a library for sensor monitoring and using `SharedFlow`s for data streams from the sensors. In general it's not OK to miss sensor updates and the program should...