当前位置:网站首页>Job object of collaboration in kotlin
Job object of collaboration in kotlin
2022-07-03 02:07:00 【yu-Knight】
Kotlin Medium range Job object
Job object
- For each collaboration created ( adopt launch perhaps async), Will return a Job example , This instance is the unique identifier of the coroutine , And manage the lifecycle of the collaboration .
- A task can contain a series of States : New creation (New)、 active (Active)、 Finishing (Completing)、 Completed (Completed)、 Cancel (Cancelling) And have been cancelled (Cancelled).
Although we don't have direct access to these States , But we can visit Job Properties of :isActive、isCancelled and isCompleted.
Job Life cycle of
- If the process is active , The coroutine runs in error or calls job.cancel() Will set the current task to cancel (Cancelling) state (isActive = false,isCancelled = true).
When all the subprocesses are finished , The program will enter the canceled program (Cancelled) state , here isCompleted = true.

边栏推荐
- Network security - virus
- DDL basic operation
- Wechat applet development tool post net:: err_ PROXY_ CONNECTION_ Failed agent problem
- 微信小程序开发工具 POST net::ERR_PROXY_CONNECTION_FAILED 代理问题
- Leetcode(540)——有序数组中的单一元素
- 机器学习笔记(持续更新中。。。)
- A 30-year-old software tester, who has been unemployed for 4 months, is confused and doesn't know what to do?
- [camera topic] complete analysis of camera dtsi
- Network security - scanning and password explosion 2
- Performance test | script template sorting, tool sorting and result analysis
猜你喜欢

stm32F407-------DMA

Anna: Beibei, can you draw?
![[camera topic] complete analysis of camera dtsi](/img/cb/d42589fcf0610600c9dc8c7992d4d7.png)
[camera topic] complete analysis of camera dtsi

可視化yolov5格式數據集(labelme json文件)

Stm32f407 ------- IIC communication protocol

创建+注册 子应用_定义路由,全局路由与子路由
![[shutter] shutter debugging (debugging fallback function | debug method of viewing variables in debugging | console information)](/img/66/0fda43da0d36fc0c9277ca86ece252.jpg)
[shutter] shutter debugging (debugging fallback function | debug method of viewing variables in debugging | console information)

elastic stack

His experience in choosing a startup company or a big Internet company may give you some inspiration

查询商品案例-页面渲染数据
随机推荐
Anna: Beibei, can you draw?
Learn BeanShell before you dare to say you know JMeter
去除网页滚动条方法以及内外边距
Basic operation of view
Network security - Trojan horse
Groovy, "try with resources" construction alternative
查询商品案例-页面渲染数据
Redis:Redis的简单使用
DDL basic operation
Internal connection query and external connection
leetcode961. Find the elements repeated N times in the array with length 2n
easyExcel
Storage basic operation
Solution for processing overtime orders (Overtime unpaid)
String replace space
[camera topic] turn a drive to light up the camera
Huakaiyun | virtual host: IP, subnet mask, gateway, default gateway
Visualisation de l'ensemble de données au format yolov5 (fichier labelme json)
Summary of ES6 filter() array filtering methods
Processing of tree structure data