Summary for Coroutines on Android (part I): Getting the background
Manage episode 349352827 series 3273813
محتوای ارائه شده توسط Mahmoud Ramadan. تمام محتوای پادکست شامل قسمتها، گرافیکها و توضیحات پادکست مستقیماً توسط Mahmoud Ramadan یا شریک پلتفرم پادکست آنها آپلود و ارائه میشوند. اگر فکر میکنید شخصی بدون اجازه شما از اثر دارای حق نسخهبرداری شما استفاده میکند، میتوانید روندی که در اینجا شرح داده شده است را دنبال کنید.https://fa.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 قسمت