# runBlocking

A Kotlin coroutines function that runs a block in a new coroutine while blocking the current thread until completion.

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

## Practical Kotlin Deep Dive: Master Kotlin Internals and Ace Your Next Technical Interview

DevFeed: [Practical Kotlin Deep Dive: Master Kotlin Internals and Ace Your Next Technical Interview](<https://devfeed.tech/articles/practical-kotlin-deep-dive-master-kotlin-internals-and-ace-your-next-technical-interview-25926.md>)

Original publisher: [Read original article](<https://skydoves.medium.com/practical-kotlin-deep-dive-master-kotlin-internals-and-ace-your-next-technical-interview-33ff30f91493?source=rss-9bb203a4ab2e------2>)

Author: Jaewoong Eum

Published: 2026-02-18T03:55:53Z

Content type: article

Language: en

Sources: [Jaewoong Eum](<https://devfeed.tech/sources/stories-by-jaewoong-eum-on-medium.md>)

Topics: [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Learning](<https://devfeed.tech/topics/learning.md>), [coroutines-flow](<https://devfeed.tech/topics/coroutines-flow.md>), [runBlocking](<https://devfeed.tech/topics/runblocking.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [scope function](<https://devfeed.tech/topics/scope-function.md>), [Safe-Call Operator](<https://devfeed.tech/topics/safe-call-operator.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [book](<https://devfeed.tech/tags/book.md>), [bytecode](<https://devfeed.tech/tags/bytecode.md>), [code](<https://devfeed.tech/tags/code.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [coroutine](<https://devfeed.tech/tags/coroutine.md>), [course](<https://devfeed.tech/tags/course.md>), [data-class](<https://devfeed.tech/tags/data-class.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [deep-dive](<https://devfeed.tech/tags/deep-dive.md>), [insights](<https://devfeed.tech/tags/insights.md>), [interactive](<https://devfeed.tech/tags/interactive.md>), [internals](<https://devfeed.tech/tags/internals.md>), [interview](<https://devfeed.tech/tags/interview.md>), [keep](<https://devfeed.tech/tags/keep.md>), [knowledge](<https://devfeed.tech/tags/knowledge.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [kotlin-coroutines](<https://devfeed.tech/tags/kotlin-coroutines.md>), [lambda](<https://devfeed.tech/tags/lambda.md>), [language](<https://devfeed.tech/tags/language.md>), [lazy](<https://devfeed.tech/tags/lazy.md>), [performance](<https://devfeed.tech/tags/performance.md>), [programming](<https://devfeed.tech/tags/programming.md>), [technical-interview](<https://devfeed.tech/tags/technical-interview.md>)

### AI overview

Practical Kotlin Deep Dive teaches Kotlin internals through bytecode, compiler references, and KEEP proposals across 70 topics in six chapters. The excerpt highlights practical mechanisms: lambda objects explain the role of `inline`; coroutine cancellation exceptions can be swallowed by broad catches; and `kotlinx-serialization` generates serializers at compile time rather than relying on reflection. It also contrasts KAPT, which generates Java stubs for annotation processors, with KSP, which reads Kotlin symbols directly and is described as at least twice as fast in many projects. The companion course adds runnable playgrounds and 158 quizzes; the book and course share the same topic coverage, while the course includes practice and a completion certificate. These points describe the material presented in the supplied excerpt.

### Source excerpt

Most Kotlin developers can write a data class, launch a coroutine, or use lazy without thinking twice. These features work, the code compiles, and the app runs. But there is a gap between knowing how to use Kotlin and understanding what the compiler actually does with your code. That gap is where performance intuition, debugging skill, and technical interview confidence come from. Practical Kotlin Deep Dive is a book designed to close that gap, covering 70 Kotlin topics across 492 pages with bytecode decompilations, compiler source code references, and KEEP proposal analysis that reveal the machinery behind every feature you use daily. In this article, you'll explore what the book and its companion course cover, walking through each of the six chapters with examples of the insights you'll find inside. You'll see how the book approaches topics differently from typical Kotlin resources, what the "Pro Tips for Mastery" sections reveal about internal mechanisms, and how the interactive course format turns that knowledge into verified understanding through Code Playgrounds and 158 quiz questions. Beyond the syntax: Why internals matter Knowing that lazy caches a value on first access is useful. Knowing that the default lazy implementation uses double checked locking with a synchronized block, and that you can switch to a lock free compareAndSet strategy by passing LazyThreadSafetyMode.PUBLICATION, is the difference between using a feature and making informed decisions about it. The same applies across the language. Understanding that every lambda passed to a higher order function creates a Function object on the heap explains why inline exists. Seeing a data class decompiled into seven generated methods explains what the compiler is doing on your behalf. This is the approach Practical Kotlin Deep Dive takes throughout. Rather than describing what Kotlin features do, it examines how they work internally, what bytecode they produce, what design trade-offs the language desi

## Orchestrating the agentic enterprise: what's new in UiPath 2025.10

DevFeed: [Orchestrating the agentic enterprise: what's new in UiPath 2025.10](<https://devfeed.tech/articles/orchestrating-the-agentic-enterprise-what-s-new-in-uipath-2025-10-79362.md>)

Original publisher: [Read original article](<https://www.uipath.com/blog/product-and-updates/orchestrating-the-agentic-enterprise-whats-new-in-uipath-2025-10>)

Author: Cameron Mehin - Blog

Published: 2025-11-19T00:00:00Z

Content type: release

Language: en

Sources: [UiPath RSS Feed](<https://devfeed.tech/sources/uipath-rss-feed.md>)

Topics: [AI Infrastructure](<https://devfeed.tech/topics/ai-infrastructure.md>), [runBlocking](<https://devfeed.tech/topics/runblocking.md>), [MSP MCP](<https://devfeed.tech/topics/msp-mcp.md>), [AI for customer service automation](<https://devfeed.tech/topics/ai-for-customer-service-automation.md>)

Tags: [agent-communication](<https://devfeed.tech/tags/agent-communication.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [auditability](<https://devfeed.tech/tags/auditability.md>), [maestro](<https://devfeed.tech/tags/maestro.md>), [orchestration](<https://devfeed.tech/tags/orchestration.md>), [product-and-updates](<https://devfeed.tech/tags/product-and-updates.md>), [release](<https://devfeed.tech/tags/release.md>), [uipath](<https://devfeed.tech/tags/uipath.md>)

### AI overview

UiPath 2025.10 expands Maestro with Case Management, Process Apps, natural-language workflow modeling through Autopilot, reusable BPMN templates, and orchestration for agents from external platforms. The release also adds integrations with enterprise data systems through Data Fabric, while preview features continue development with early customers.

### Source excerpt

The UiPath 2025.10 release expands Maestro with new Case Management, Process Apps, and orchestration features that give enterprises greater visibility, control, and productivity.

## runBlocking in practice: Where it should be used and where not

DevFeed: [runBlocking in practice: Where it should be used and where not](<https://devfeed.tech/articles/runblocking-in-practice-where-it-should-be-used-and-where-not-39373.md>)

Original publisher: [Read original article](<https://kt.academy/article/run_blocking>)

Published: 2025-09-01T00:00:00Z

Content type: tutorial

Language: en

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

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

Tags: [android](<https://devfeed.tech/tags/android.md>), [async](<https://devfeed.tech/tags/async.md>), [await](<https://devfeed.tech/tags/await.md>), [best-practices](<https://devfeed.tech/tags/best-practices.md>), [blocking](<https://devfeed.tech/tags/blocking.md>), [coroutines](<https://devfeed.tech/tags/coroutines.md>), [dispatcher](<https://devfeed.tech/tags/dispatcher.md>), [guide](<https://devfeed.tech/tags/guide.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [pitfalls](<https://devfeed.tech/tags/pitfalls.md>), [retrofit](<https://devfeed.tech/tags/retrofit.md>), [runblocking](<https://devfeed.tech/tags/runblocking.md>), [workshop-learning-programming](<https://devfeed.tech/tags/workshop-learning-programming.md>)

### AI overview

A practical guide to runBlocking in Kotlin Coroutines. It explains how runBlocking converts suspending calls into blocking calls, blocks the calling thread until completion, and creates a new coroutine hierarchy. The article discusses appropriate uses, code smells, and alternatives, including an Android Retrofit interceptor example.

### Source excerpt

A comprehensive guide to using runBlocking in Kotlin Coroutines, including best practices and common pitfalls.

## 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](<https://devfeed.tech/topics/kotlin.md>), [runBlocking](<https://devfeed.tech/topics/runblocking.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.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.

## Kotlin property delegates for Datastore Preferences library

DevFeed: [Kotlin property delegates for Datastore Preferences library](<https://devfeed.tech/articles/kotlin-property-delegates-for-datastore-preferences-library-26020.md>)

Original publisher: [Read original article](<https://proandroiddev.com/kotlin-property-delegates-for-datastore-preferences-library-5d4e1cdb609b?source=rss-e93d234beac6------2>)

Author: Yahor Urbanovich

Published: 2021-08-23T15:40:08Z

Content type: tutorial

Language: en

Sources: [Yahor Urbanovich](<https://devfeed.tech/sources/stories-by-yahor-urbanovich-on-medium.md>)

Topics: [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [coroutines-flow](<https://devfeed.tech/topics/coroutines-flow.md>), [Coroutines](<https://devfeed.tech/topics/coroutines.md>), [suspend function](<https://devfeed.tech/topics/suspend-function.md>), [runBlocking](<https://devfeed.tech/topics/runblocking.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-app-development](<https://devfeed.tech/tags/android-app-development.md>), [androiddev](<https://devfeed.tech/tags/androiddev.md>), [coroutines](<https://devfeed.tech/tags/coroutines.md>), [delegates](<https://devfeed.tech/tags/delegates.md>), [flow](<https://devfeed.tech/tags/flow.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [migration](<https://devfeed.tech/tags/migration.md>), [property](<https://devfeed.tech/tags/property.md>), [property-delegation](<https://devfeed.tech/tags/property-delegation.md>), [reading](<https://devfeed.tech/tags/reading.md>), [suspend](<https://devfeed.tech/tags/suspend.md>)

### AI overview

The excerpt presents Kotlin property delegates as a way to encapsulate single-value reads and writes while migrating from SharedPreferences to AndroidX DataStore Preferences. It highlights DataStore's built-in Flow and Coroutines support, compared with a SharedPreferences change-listener wrapper that emits through deprecated ConflatedBroadcastChannel before converting to Flow. The excerpt says DataStore exposes values as Flow and requires suspend functions; to read one value, the author uses Flow.first() inside runBlocking and wraps that logic in a delegate. DataStore keys can use generics, while SharedPreferences delegates need separate classes for primitive types because its getters and setters are typed. The excerpt ends before showing the final delegate implementation, so its details and limitations are not available.

### Source excerpt

Kotlin delegated property for Datastore Preferences library Recently AndroidX Datastore 1.0 was released. The moment has come, it's time to migrate away from SharedPreferences. As for me, the key benefit is the built-in support of Kotlin Flow and Coroutines. Previously we had to write our own wrapper under SharedPreferences.OnSharedPreferenceChangeListener, emit changes into ConflatedBroadcastChannel and then convert it into Flow. https://medium.com/media/b5410ce9df08d9b73427a2138a6b0a8d/href Firstly, this approach produces a lot of intermediate variables. Secondly, ConflatedBroadcastChannel deprecated and should be replaced with StateFlow. In this case, DataStore comes out as the winner. The migrated to DataStore version looks clean and simple. https://medium.com/media/cce0d485e2af9941e677dc7973a54c6f/hrefRead/write single value using SharedPreferences Let's imagine, we need to store the current App theme as String. For this purpose, we need to initialize SharedPreferences, then make two functions to read and write these values. https://medium.com/media/3bc9760a22ebd1071e4dcb21eaf8d4ba/href Well, two functions it is not so bad, but we can try to merge this into single Property. https://medium.com/media/c3babbf2b6c55bb18172f66ddc825b06/href To make it fully clear and supportable we can use the Kotlin delegation feature. As we want to read and write simultaneously, ReadWriteProperty will suit our goal. https://medium.com/media/80f370a5a5735b911c75d3a0f1d22b21/href Please take a look at the final compact version, where all logic is encapsulated inside the delegate. https://medium.com/media/39b5311b04373b1f31d3030b8b083587/hrefDataStore Preferences and missing API During migration, it turned out that the library doesn't provide an API for reading a single property. DataStore proposes to use Flow for all cases. Developers are now required to read/write the value in the scope of a suspend function. https://medium.com/media/e7c4e45e239e11bc5082f3997e5280dd/href What was e