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

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. 
主站蜘蛛池模板: 大理市| 黄石市| 龙胜| 菏泽市| 禄劝| 石棉县| 东城区| 东城区| 平安县| 旬邑县| 石河子市| 达拉特旗| 博客| 巧家县| 邵阳市| 满洲里市| 刚察县| 灌南县| 福安市| 武定县| 云梦县| 阳曲县| 酒泉市| 红安县| 长泰县| 石柱| 邹城市| 秦皇岛市| 泗水县| 广东省| 保山市| 桐庐县| 个旧市| 清河县| 崇阳县| 民权县| 萨迦县| 盈江县| 且末县| 望城县| 郑州市|