👨‍💻
dnpi
  • Git cheat sheet
  • Android
    • Flutter Member not found: 'UnicodeChar'.
    • Flutter Cheat sheet
    • Gradle VersionName
  • Command Line
    • Aliases
    • VSCode specific
    • Docker cheat sheet
    • JAVA_HOME on MacOS
  • Springboot
    • Error 404 in Docker but works on local run
    • Migrate from RxJava to Kotlin Coroutine and Flows
  • iOS Dev
    • Run Simulator from command line
Powered by GitBook
On this page
  • First things first
  • Problems with Retrofit2

Was this helpful?

  1. Springboot

Migrate from RxJava to Kotlin Coroutine and Flows

First things first

Setup and add required dependencies in your gradle or pom file:

https://mvnrepository.com/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core

Problems with Retrofit2

If you are using an older version of Retrofit than 2.6.0 then you have to add the Kotlin Coroutine Adapter: https://github.com/JakeWharton/retrofit2-kotlin-coroutines-adapter

PreviousError 404 in Docker but works on local runNextRun Simulator from command line

Last updated 4 years ago

Was this helpful?