kotlinx.coroutines
kotlinx.coroutines copied to clipboard
Library support for Kotlin coroutines
I'm trying to write a test for a blocking function that uses coroutines internally, wrapped by a `runBlocking` call. the basic flow would be represented by something like: ```kotlin @Test...
An attempt to mitigate #1205.
### Expected behavior `future` coroutine builder delivers all errors via the returned object, just like `async`. ### Actual behavior `future` coroutine builder can suddenly trigger global exception handler that may...
It was added in 0.7(!!) and made experimental in 1.0 about two years later. That was now 4 years ago. Time to stabilize?
``` val measurer = if (measure) MyCoroutineMeasurer() else null // CopyableThreadContextElement runBlocking(Dispatchers.Default + CoroutineName("root") + measurer ?: EmptyCoroutineContext) { launch(CoroutineName("task 1") { ... } // ok async(CoroutineName("task 2") { ......
- [x] #1939 - Add version extension ### Convert root build script - [x] #1969 - platform util - [x] #1977 - plugin versions in `settings` - [x] #1984 -...
I have an application with long-lived flows constructed via `callbackFlow`. I'm receiving messages from a third-party API and relaying them forwards. I want to manage the queue of inbound messages...