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

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

Update: 2021-02-13
Share

Description

 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"


https://medium.com/androiddevelopers/coroutines-on-android-part-i-getting-the-background-3e0e54d20bb

Comments 
00:00
00:00
x

0.5x

0.8x

1.0x

1.25x

1.5x

2.0x

3.0x

Sleep Timer

Off

End of Episode

5 Minutes

10 Minutes

15 Minutes

30 Minutes

45 Minutes

60 Minutes

120 Minutes

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

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

Mahmoud Ramadan