<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/working-with-kotlin-coroutines-and-rxswift-ad89ckc3i" -->

---
title: Working with Kotlin Coroutines and RxSwift | daily.dev
description: A practical guide to bridging Kotlin Coroutines in shared KMM code with RxSwift on the iOS side. Covers creating type-safe and thread-safe wrapper types...
canonical: https://daily.dev/posts/working-with-kotlin-coroutines-and-rxswift-ad89ckc3i
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Working with Kotlin Coroutines and RxSwift | daily.dev
og:description: A practical guide to bridging Kotlin Coroutines in shared KMM code with RxSwift on the iOS side. Covers creating type-safe and thread-safe wrapper types...
og:url: https://daily.dev/posts/working-with-kotlin-coroutines-and-rxswift-ad89ckc3i
og:image: https://api.daily.dev/og/posts/ad89cKC3I.png
og:image:alt: Working with Kotlin Coroutines and RxSwift
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Working with Kotlin Coroutines and RxSwift

**[Touchlab](https://daily.dev/sources/touchlab)** · 10 min read · 0 upvotes · 0 comments

## Summary

A practical guide to bridging Kotlin Coroutines in shared KMM code with RxSwift on the iOS side. Covers creating type-safe and thread-safe wrapper types (SuspendWrapper and FlowWrapper) in Kotlin's iosMain source set, handling freeze() calls for Kotlin/Native thread safety, and writing Swift top-level functions that convert these wrappers into RxSwift Singles and Observables. Also addresses generic type erasure limitations when extending Objective-C generic classes in Swift, error propagation via a KotlinError wrapper, and cancellation linking between Rx disposables and coroutine Jobs.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://touchlab.co/kotlin-coroutines-rxswift>

## Similar posts on daily.dev

- [Mastering Coroutines and Flow in Android](https://daily.dev/posts/mastering-coroutines-and-flow-in-android-opgwyvoqn) · Medium · 0 upvotes · 0 comments
- [Using Koin from Swift in a KMP Project](https://daily.dev/posts/using-koin-from-swift-in-a-kmp-project-wjf3vpety) · ITNEXT · 0 upvotes · 0 comments
- [KMP Architecture: The Case for Pure Kotlin ViewModels](https://daily.dev/posts/kmp-architecture-the-case-for-pure-kotlin-viewmodels-2xnkadg3i) · ProAndroidDev · 1 upvotes · 0 comments
- [Working in Kotlin: Waiting Around with Coroutines](https://daily.dev/posts/working-in-kotlin-waiting-around-with-coroutines-vjhedyeww) · Atomic Spin · 0 upvotes · 0 comments
- [Kotlin Weekly \#532](https://daily.dev/posts/kotlin-weekly-532-hs8jzqt9y) · Kotlin Weekly · 0 upvotes · 0 comments

---

Tags: [#swift](https://daily.dev/tags/swift), [#kotlin](https://daily.dev/tags/kotlin)

[View this post on daily.dev](https://daily.dev/posts/working-with-kotlin-coroutines-and-rxswift-ad89ckc3i)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Working with Kotlin Coroutines and RxSwift","url":"https://daily.dev/posts/working-with-kotlin-coroutines-and-rxswift-ad89ckc3i","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/working-with-kotlin-coroutines-and-rxswift-ad89ckc3i"},"datePublished":"2026-08-02T07:15:31.897Z","dateModified":"2026-08-02T07:40:37.817Z","description":"A practical guide to bridging Kotlin Coroutines in shared KMM code with RxSwift on the iOS side. Covers creating type-safe and thread-safe wrapper types...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/2ce31e11891242f9220ffe7da5b6fecf?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/2ce31e11891242f9220ffe7da5b6fecf?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Touchlab","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Touchlab","logo":"https://media.daily.dev/image/upload/s--CQ0u6GwB--/f_auto,q_auto/v1785654902/logos/touchlab?_a=BAMAMicg0","url":"https://daily.dev/sources/touchlab"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/working-with-kotlin-coroutines-and-rxswift-ad89ckc3i","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"swift,kotlin","timeRequired":"PT10M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Touchlab","item":"https://daily.dev/sources/touchlab"},{"@type":"ListItem","position":3,"name":"Working with Kotlin Coroutines and RxSwift"}]}
```

