官术网_书友最值得收藏!

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
主站蜘蛛池模板: 泸水县| 广水市| 襄城县| 黑龙江省| 三原县| 壶关县| 岳阳县| 台前县| 张家港市| 新和县| 筠连县| 钟山县| 定南县| 沿河| 怀集县| 正镶白旗| 鄂伦春自治旗| 金山区| 绥德县| 信丰县| 四川省| 沙河市| 常宁市| 鄂伦春自治旗| 鄯善县| 乐陵市| 凤山市| 西峡县| 克什克腾旗| 中方县| 池州市| 安龙县| 阿克陶县| 祁门县| 兴仁县| 云龙县| 葵青区| 临潭县| 土默特右旗| 巴彦县| 阿拉尔市|