Death is always a surprise. No one expects it. Not even terminal patients think they are going to die in a day or two. In a week, maybe. But only when this particular week is the next week.
We are never ready. It is never the right time. By the time it comes, you will not have…
Today marks the release of a version 0.26.0 of
kotlinx.coroutines library and an introduction of structured concurrency to Kotlin coroutines. It is more than just a feature — it marks an ideology shift so big that I’m writing this post to explain it.
when works similarly to Java’s
switch. Once upon a time, I heard that
when forces you to specify all the branches (when all the branches can be known by the compiler, with enums or sealed-classes), but I didn’t find this to be the case.