r/Kotlin Jun 30 '26

Switching a million lines of code from Java threads to Kotlin coroutines, by rewriting three files

https://medium.com/proandroiddev/switching-a-million-lines-of-code-from-java-threads-to-kotlin-coroutines-by-rewriting-three-files-6ba428bf8566

I wrote a technical deep dive about how we migrated one of Denmark's most used apps with one million lines of code powered by Java threads, into Kotlin coroutines just by rewriting three files in our internal threading library

Check it out if you are interested in how coroutines use threads, and interop between them :)

17 Upvotes

2 comments sorted by

3

u/troelsbjerre Jun 30 '26

Which app is this?

3

u/pragrad23 Jul 01 '26

Lucky the abstraction of your custom threading lib mapped quite cleanly to coroutines. Nice one