- Learning Concurrency in Kotlin
- Miguel Angel Castiblanco Torres
- 174字
- 2021-08-05 10:46:51
Life Cycle and Error Handling
Now that we have an application using coroutines in order to do network requests, it's time to add new features to it while putting into practice new concepts and improving the user experience.
In this chapter, we will start by taking a closer look at two types of asynchronous tasks: Job and Deferred. We will talk about their similarities and their differences, taking a closer look at their life cycle. We will also cover how to calculate their current state and what to expect in each state. Then, we will improve our RSS reader by having it fetch news concurrently from many news outlets and using the newly introduced topics to handle exceptions when a feed can't be reached.
Some of the topics we will cover during this chapter are as listed:
- Jobs and their use cases
- Life cycle of Job and Deferred
- Use cases for Deferred
- What to expect with each status of a Job
- How to calculate the current status of a Job
- How to handle exceptions
推薦閱讀
- Python量化投資指南:基礎(chǔ)、數(shù)據(jù)與實(shí)戰(zhàn)
- Learning Apex Programming
- Python數(shù)據(jù)分析基礎(chǔ)
- Mastering Python Scripting for System Administrators
- SQL for Data Analytics
- 基于免疫進(jìn)化的算法及應(yīng)用研究
- Learning Linux Binary Analysis
- Python金融數(shù)據(jù)分析
- Mastering KnockoutJS
- Learning SciPy for Numerical and Scientific Computing(Second Edition)
- 零基礎(chǔ)學(xué)Python網(wǎng)絡(luò)爬蟲(chóng)案例實(shí)戰(zhàn)全流程詳解(入門(mén)與提高篇)
- PHP+MySQL+Dreamweaver動(dòng)態(tài)網(wǎng)站開(kāi)發(fā)從入門(mén)到精通(第3版)
- Raspberry Pi Robotic Blueprints
- Kotlin進(jìn)階實(shí)戰(zhàn)
- Learning Alfresco Web Scripts