Vsevolod Tolstopyatov
Vsevolod Tolstopyatov
Consider the following situation when the dispatcher in the context is multithreaded ``` suspend fun foo() = yield() ``` It basically can be boiled down to the following pseudocode: ```...
* For RxJava2, use them in internal implementations where appropriate * For RxJava3, introduce & Any bound to generic argument in our extensions to avoid errors in Kotlin 1.8.0 due...
Primitive, which distributes permits at the fixed rate or suspends current coroutine until it's available. Such primitive is useful in a lot of server-side application to throttle requests to external...
CancellableContinuationImpl.getParentHandle/setParentHandle ``` WARNING: ThreadSanitizer: data race (pid=88874) Read of size 8 at 0x7b1400020b60 by thread T3: #0 kfun:kotlinx.coroutines.CancellableContinuationImpl.#internal CancellableContinuationImpl.kt:75 (newMM.kexe:x86_64+0x10019410b) #1 kfun:kotlinx.coroutines.CancellableContinuationImpl#detachChild(){} CancellableContinuationImpl.kt:495 (newMM.kexe:x86_64+0x10019affb) #2 kfun:kotlinx.coroutines.CancellableContinuationImpl.detachChildIfNonResuable#internal CancellableContinuationImpl.kt:488 (newMM.kexe:x86_64+0x10019af32) #3 kfun:kotlinx.coroutines.CancellableContinuationImpl#cancel(kotlin.Throwable?){}kotlin.Boolean...
To significantly simplify maintenance and implementation of new features for `kotlinx.coroutines` 1.7.0. The new memory model will be enabled by default in Kotlin 1.7.20, and the old one will likely...
Duplicating the content of https://youtrack.jetbrains.com/issue/KT-45502 for further discussion and use-cases. === I have a pattern that I use often while developing an UI (in Compose). The current Flow API lacks...
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...
Currently, `kotlinx-coroutines-debug` unconditionally overwrites any previously installed debug probes, which may lead to various conflicts when more than one agent with `DebugProbes` support is installed. The issue was discovered when...
According to the [doc](https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/is-active.html), `isActive` has the following property: >The coroutineContext.isActive expression is a shortcut for coroutineContext[Job]?.isActive == true. See [Job.isActive](https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-job/is-active.html). It means that, if the `Job` is not present,...
We're gradually moving away from 1.6 support (#1589), it seems to be the time to merge supplementary jdk8 artifact into the core. To keep Android API at a reasonable level,...