# 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.