- 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.
推薦閱讀
- Boost.Asio C++ Network Programming(Second Edition)
- Mastering JavaScript Functional Programming
- Python 3.7網(wǎng)絡(luò)爬蟲(chóng)快速入門
- Oracle從新手到高手
- .NET 4.0面向?qū)ο缶幊搪劊夯A(chǔ)篇
- Unity Virtual Reality Projects
- 算法大爆炸:面試通關(guān)步步為營(yíng)
- Learning AWS Lumberyard Game Development
- Extending Puppet(Second Edition)
- Python深度學(xué)習(xí)原理、算法與案例
- HTML5秘籍(第2版)
- 深入剖析Java虛擬機(jī):源碼剖析與實(shí)例詳解(基礎(chǔ)卷)
- OpenCV with Python By Example
- Go語(yǔ)言編程
- Unity Character Animation with Mecanim