Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Many people were not satisfied with basic sealed classes or Kotlin's Result class, and opted to either write their own implementation, use an existing one (like https://github.com/michaelbull/kotlin-result), or use Arrow.
I made a result library, but unlike the sealed class approach, the implementation is basically copy-pasted from stdlib, except it is Result and a few changes. https://github.com/Jason5Lee/resukt
Sure! runCatching catches Throwable right? Well when you cancel a coroutine it throws a CancellationException and this gets used as a signal to stop execution. runCatching stops that signal so the coroutine keeps running. Lemme find you a link real quick https://github.com/Kotlin/kotlinx.coroutines/issues/1814