Summary for Coroutines on Android (part I): Getting the background
M4A•בית הפרקים
Manage episode 349352827 series 3273813
תוכן מסופק על ידי Mahmoud Ramadan. כל תוכן הפודקאסטים כולל פרקים, גרפיקה ותיאורי פודקאסטים מועלים ומסופקים ישירות על ידי Mahmoud Ramadan או שותף פלטפורמת הפודקאסט שלהם. אם אתה מאמין שמישהו משתמש ביצירה שלך המוגנת בזכויות יוצרים ללא רשותך, אתה יכול לעקוב אחר התהליך המתואר כאן https://he.player.fm/legal.
As Sean McQuillan said
"coroutines are a great solution to two problems:
- Long-running tasks are tasks that take too long to block the main thread.
- Main-safety allows you to ensure that any suspend function can be called from the main thread.
- Coroutines build upon regular functions by adding two new operations. In addition to invoking (or call) and return, coroutines add suspend and resume.
- Suspend and resume work together to replace callbacks.
- 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
16 פרקים