# Kotlin Coroutines use cases for Presentation/API/UI Layer

DevFeed: [Kotlin Coroutines use cases for Presentation/API/UI Layer](<https://devfeed.tech/articles/kotlin-coroutines-use-cases-for-presentation-api-ui-layer-39246.md>)

Original publisher: [Read original article](<https://kt.academy/article/cc-use-cases-presentation-layer>)

Published: 2022-11-30T00:00:00Z

Content type: tutorial

Language: en

Sources: [Kt. Academy](<https://devfeed.tech/sources/kt-academy.md>)

Topics: [kotlin-coroutines](<https://devfeed.tech/topics/kotlin-coroutines.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [runBlocking](<https://devfeed.tech/topics/runblocking.md>), [ui](<https://devfeed.tech/topics/ui.md>), [Ktor](<https://devfeed.tech/topics/ktor.md>), [Spring Boot](<https://devfeed.tech/topics/spring-boot.md>)

Tags: [coroutines](<https://devfeed.tech/tags/coroutines.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [kotlin-coroutines](<https://devfeed.tech/tags/kotlin-coroutines.md>), [runblocking](<https://devfeed.tech/tags/runblocking.md>), [scope](<https://devfeed.tech/tags/scope.md>), [ui](<https://devfeed.tech/tags/ui.md>), [workshop-learning-programming](<https://devfeed.tech/tags/workshop-learning-programming.md>)

## AI overview

This tutorial explains how Kotlin Coroutines are used in the presentation, API, and UI layers. It covers framework-provided coroutine launches, custom coroutine scopes, scope cancellation, and appropriate uses of runBlocking, including application startup and tests.

## Source excerpt

How do we use Kotlin Coroutines in the Presentation/API/UI Layer Layer, how do we create scope and start coroutines.