- 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.
推薦閱讀
- ExtGWT Rich Internet Application Cookbook
- JavaScript 從入門到項目實踐(超值版)
- Beginning C++ Game Programming
- Drupal 8 Blueprints
- OpenCV實例精解
- Scala Design Patterns
- 從程序員到架構師:大數據量、緩存、高并發、微服務、多團隊協同等核心場景實戰
- Mastering Scientific Computing with R
- 精通Scrapy網絡爬蟲
- ADI DSP應用技術集錦
- Windows Phone 7.5:Building Location-aware Applications
- Python機器學習算法與應用
- 零基礎學Python編程(少兒趣味版)
- 新印象:解構UI界面設計
- Mobile Forensics:Advanced Investigative Strategies