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

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. 
主站蜘蛛池模板: 梁平县| 普定县| 枝江市| 信阳市| 台湾省| 舞钢市| 宁津县| 阜平县| 饶河县| 新田县| 遂溪县| 安多县| 都兰县| 托里县| 巴中市| 淄博市| 龙山县| 宽城| 庄浪县| 武城县| 江华| 渝北区| 遵义市| 泰安市| 邳州市| 扶余县| 杭锦旗| 当雄县| 巢湖市| 鹤壁市| 长寿区| 石泉县| 奉贤区| 闽侯县| 鄂尔多斯市| 德钦县| 丹寨县| 鄂托克旗| 宜阳县| 大名县| 安龙县|