Audcode

Summary for Coroutines on Android (part I): Getting the background


Listen Later

 As Sean McQuillan said 

"coroutines are a great solution to two problems:

  1. Long-running tasks are tasks that take too long to block the main thread.
  2. Main-safety allows you to ensure that any suspend function can be called from the main thread.
  3. Coroutines build upon regular functions by adding two new operations. In addition to invoking (or call) and return, coroutines add suspend and resume.
  4. Suspend and resume work together to replace callbacks.
  5. Coroutines will run on the main thread, and suspend does not mean background"
  6. https://medium.com/androiddevelopers/coroutines-on-android-part-i-getting-the-background-3e0e54d20bb

    ...more
    View all episodesView all episodes
    Download on the App Store

    AudcodeBy Mahmoud Ramadan