- Learning Concurrency in Kotlin
- Miguel Angel Castiblanco Torres
- 91字
- 2021-08-05 10:46:49
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.
推薦閱讀
- 大話PLC(輕松動漫版)
- 國際大學生程序設計競賽中山大學內部選拔真題解(二)
- OpenDaylight Cookbook
- JavaScript+jQuery開發實戰
- C語言程序設計實踐教程
- HTML5+CSS3網站設計教程
- TypeScript實戰指南
- 大模型RAG實戰:RAG原理、應用與系統構建
- C語言開發基礎教程(Dev-C++)(第2版)
- JavaScript+jQuery網頁特效設計任務驅動教程
- 網絡數據采集技術:Java網絡爬蟲實戰
- Scratch從入門到精通
- Practical Maya Programming with Python
- Socket.IO Cookbook
- Getting Started with RethinkDB