kotlinx.coroutines
kotlinx.coroutines copied to clipboard
Library support for Kotlin coroutines
There are collected only the first and the last values. It's an Android application. `mainDispatcherRule` is used to replace `Dispatcher.Main` -> `UnconfinedTestDispatcher`. The idea is to collect all emitted values...
On Android, the viewmodels rely on `viewModelScope`, which is essentially the same as `CoroutineScope(SupervisorJob() + Dispatchers.Main.immediate)`. If I update a `MutableStateFlow` multiple times inside `viewModelScope.launch` I don't seem to be...
It was added in 0.24 and made experimental in 1.0 later that year. Both of those events were 4 years ago. Time to stabilize?
SharedFlow doc says: > For example, the following class encapsulates an event bus that distributes events to all subscribers in a rendezvous manner, **suspending until all subscribers process each event**...
This section was a legacy from the very beginning and was an unknown part of our publication process: it was automatically added by `shadow` plugin, but it doesn't carry any...
Hello, I use the `transformLatest` function a lot in my business logic, and I'm wondering why it's still marked as an experimental API while the other `xxxLatest` operators are not....
Hello! We are observing the performance issues in the recyclerView when at least one view of the recycler view item layout is bound with MutableStateFlow. To bind the first row...
Hi, sometimes you want to have code blocks, that should run in total and not get cancelled in between, e.g. when you call an api and you prefer to handle...
Version: 1.6 I was surprised to see that while a job is completing (i.e., waiting for all of its children to complete) new children can still be launched. In contrast,...
(In addition to keeping the code compiling in the future, this change should make some runtime nullness errors impossible.) rxjava3 nullness annotations don't yet trigger Kotlin compile errors, but that...