# Allgemein, Kotlin

Published articles for Allgemein, Kotlin.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## 7 common mistakes you might be making when using Kotlin Coroutines

DevFeed: [7 common mistakes you might be making when using Kotlin Coroutines](<https://devfeed.tech/articles/7-common-mistakes-you-might-be-making-when-using-kotlin-coroutines-25414.md>)

Original publisher: [Read original article](<https://www.lukaslechner.com/7-common-mistakes-you-might-be-making-when-using-kotlin-coroutines/>)

Author: Lukas Lechner

Published: 2021-01-08T11:12:53Z

Content type: tutorial

Language: en

Sources: [Lukas Lechner](<https://devfeed.tech/sources/lukas-lechner.md>)

Topics: [Coroutines](<https://devfeed.tech/topics/coroutines.md>), [kotlin-coroutines](<https://devfeed.tech/topics/kotlin-coroutines.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>)

Tags: [allgemein](<https://devfeed.tech/tags/allgemein.md>), [allgemein-kotlin](<https://devfeed.tech/tags/allgemein-kotlin.md>), [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [concurrent](<https://devfeed.tech/tags/concurrent.md>), [coroutine](<https://devfeed.tech/tags/coroutine.md>), [coroutines](<https://devfeed.tech/tags/coroutines.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [kotlin-coroutines](<https://devfeed.tech/tags/kotlin-coroutines.md>), [mistakes](<https://devfeed.tech/tags/mistakes.md>), [structured-concurrency](<https://devfeed.tech/tags/structured-concurrency.md>)

### AI overview

A tutorial on common mistakes when using Kotlin Coroutines, including creating a separate Job that breaks structured concurrency and installing SupervisorJob incorrectly. It explains how coroutine scope cancellation and job hierarchies affect cancellation behavior.

### Source excerpt

In my opinion, Kotlin Coroutines really simplify the way we write asynchronous and concurrent code. However, I identified some common mistakes that many developers make when using Coroutines. This way, our Coroutine now is cancelled when the Scope is cancelled: The suspend functions in the Kotlin standard library (like e.g. `delay()`) are all cooperative regarding Read More The post 7 common mistakes you might be making when using Kotlin Coroutines first appeared on Lukas Lechner.

## Kotlin Coroutines Exception Handling Cheat Sheet

DevFeed: [Kotlin Coroutines Exception Handling Cheat Sheet](<https://devfeed.tech/articles/kotlin-coroutines-exception-handling-cheat-sheet-25415.md>)

Original publisher: [Read original article](<https://www.lukaslechner.com/coroutines-exception-handling-cheat-sheet/>)

Author: Lukas Lechner

Published: 2020-10-28T14:12:43Z

Content type: article

Language: en

Sources: [Lukas Lechner](<https://devfeed.tech/sources/lukas-lechner.md>)

Topics: [Coroutines](<https://devfeed.tech/topics/coroutines.md>), [Exception](<https://devfeed.tech/topics/exception.md>), [kotlin-coroutines](<https://devfeed.tech/topics/kotlin-coroutines.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>)

Tags: [allgemein](<https://devfeed.tech/tags/allgemein.md>), [allgemein-kotlin](<https://devfeed.tech/tags/allgemein-kotlin.md>), [cheat-sheet](<https://devfeed.tech/tags/cheat-sheet.md>), [coroutines](<https://devfeed.tech/tags/coroutines.md>), [exception](<https://devfeed.tech/tags/exception.md>), [exception-handling](<https://devfeed.tech/tags/exception-handling.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [kotlin-coroutines](<https://devfeed.tech/tags/kotlin-coroutines.md>)

### AI overview

A cheat sheet explains six key points about exception handling in Kotlin coroutines, including try-catch handling, exception propagation through job hierarchies, differences between launch and async, coroutineScope behavior, and cancellation exceptions.

### Source excerpt

Exception Handling with Kotlin Coroutines is hard. I wrote an extensive article about it and gave talks about it at several conferences. Some developers suggested creating some kind of cheat sheet that could be helpful for implementing appropriate exception handling in coroutine-based code. Here it is 😉. It contains the six most important points. You Read More The post Kotlin Coroutines Exception Handling Cheat Sheet first appeared on Lukas Lechner.