kotlin - InternalCoroutinesApi注解是什么意思

标签 kotlin kotlin-coroutines

我是 kotlin 协程的新手,我看到一些 api 用 @InternalCoroutinesApi 进行了注释。 .
从官方文档它说

it should not be used outside of kotlinx.coroutines



我无法清楚地理解它们的含义。
谁能详细说明一下?

最佳答案

这个注解

marks declarations that are internal in coroutines API, which means that should not be used outside of kotlinx.coroutines, because their signatures and semantics will change between future releases without any warnings and without providing any migration aids.


来源:https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-internal-coroutines-api/

关于kotlin - InternalCoroutinesApi注解是什么意思,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61229037/

相关文章:

java - Kotlin-Java 互操作不适用于可变参数

android - 为什么 ViewModelScoped 协程在调用 ViewModel onCleared() 方法后无法使用

kotlin - 暂停功能 block 主线程

kotlin - 与 kotlins 流异步发出流值

Android 和 Kotlin 协程 : inappropriate blocking method call

java - 创建 gradle 插件时将生成的 java 或 kotlin 源代码放在哪里?

android - 找不到类 "android.provider.MediaStore$Downloads"

android - android Spinner 中的数据绑定(bind)错误

java - 如何在 kotlin 中模拟相同的行为

kotlin - 非阻塞 I/O 和 Kotlin 协程有什么关系?