Vsevolod Tolstopyatov
Vsevolod Tolstopyatov
Investigate possible shortcuts for `coroutineContext.job.invokeOnCompletion { if (it != null) ... }`
The pattern itself is useful for any closeable resources that face non-atomic cancellation (https://github.com/Kotlin/kotlinx.coroutines/issues/1191) as the only reliable way to close it. Apart from that, the pattern itself is very...
Currently, the machinery of coroutines have two code-paths: * Dispatcheable coroutines that have `ContinuationInteceptor` being an instance of `CoroutineDispatcher` in their context. From implementation standpoint, implementation [checks](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/common/src/CancellableContinuationImpl.kt#L517) ([one more example...
CIO and Netty behave differently for simple hello-server (e.g. `netty-embedded` from samples) `embeddedServer(Netty, commandLineEnvironment(args)).start()` // Works `embeddedServer(CIO, commandLineEnvironment(args)).start()` // Application exits right after `start` call Even though one may use...
Attempt to somehow address #2003
After release with our Duration support and Kotlin 1.7.20: https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/builtin-classes.md
Basically, we should teach our lexer to (https://github.com/Kotlin/kotlinx.serialization/blob/dev/formats/json/jvmMain/src/kotlinx/serialization/json/internal/JsonLexerJvm.kt#L179) to carefully look until the end of the current buffer in search for polymorphic key
Currently, for the serializable class with polymorphic property, e.g. ``` @Serializable data class PolymorphicWrapper(val i: @Polymorphic Poly) ``` nested `write$self` contains the following snippet: ``` output.encodeSerializableElement(serialDesc, 0, new PolymorphicSerializer(Reflection.getOrCreateKotlinClass(PurePolymorphismOverheadBenchmark.Poly.class)), self.i);...
From Cliff Click JavaOne [talk](http://www.azulsystems.com/events/javaone_2008/2008_CodingNonBlock.pdf) (see slides 51-53) As far as I know there is no such queue implementations (neither in high scale lib nor anywhere else), so JCTools seems...