Tag: kotlin
Coroutine trap from Arkadii Ivanov
Another day, another Kotlin Coroutines trap I’ve fallen into. Been using coroutines for years, still happens. And turned out I’m not the only one: https://stackoverflow.com/questions/56305044/kotlin-coroutine-withtimeout-does-not-cancel-when-using-withcontext-to-get-non-b I know that cancellation is cooperative. But for some reason I assumed that the cooperation is somehow already implemented inside `withContext`.
https://twitter.com/arkann1985/status/2113579793790943690
Continue reading Coroutine trap from Arkadii IvanovJetpack Compose Mechanisms, Part 1: How the Compiler Turns a Function into a Composable
The Companions to Come
We are working on extensions to our companions mechanism to unlock new code patterns and improve interoperability across different platforms. This post outlines these new features and provides preliminary guidance on migration.
Ktorfit
https://klibs.io/project/Foso/Ktorfit
Ktorfit is an HTTP client/Kotlin Symbol Processor for Kotlin Multiplatform ( Android, iOS, Js, Jvm, Linux) using KSP and Ktor clients inspired by Retrofit