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

Platform-specific UI libraries

Given that there are many types of GUI applications for the JVM, Kotlin has separated some platform-specific coroutine functionality into libraries.

  • kotlinx-coroutines-android
  • kotlinx-coroutines-javafx
  • kotlinx-coroutines-swing

Notice that all these platforms have the same UI model that we talked about before, in which only the UI thread can create and update the views. So, these tiny libraries are simply a CoroutineDispatcher that is implemented to confine coroutines to the UI thread.

The Android library also adds support for some exception pre-handling at thread level that is specific to Android. 
主站蜘蛛池模板: 大冶市| 当雄县| 大方县| 岳阳县| 石狮市| 冀州市| 乐平市| 隆昌县| 宁南县| 特克斯县| 吐鲁番市| 依安县| 陈巴尔虎旗| 桐城市| 苏尼特左旗| 景谷| 个旧市| 什邡市| 呼伦贝尔市| 图木舒克市| 北流市| 濮阳市| 阿克陶县| 普陀区| 遵义市| 洛浦县| 金平| 赣榆县| 名山县| 公主岭市| 广南县| 柳州市| 隆德县| 淳化县| 乌苏市| 出国| 黄大仙区| 高安市| 连平县| 鸡东县| 深圳市|