InternalCoroutinesApi注释是什么意思 [英] What does InternalCoroutinesApi annotation means

查看:480
本文介绍了InternalCoroutinesApi注释是什么意思的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不是Kotlin协程的新手,我看到一些api用@InternalCoroutinesApi进行了注释. 从官方文件中说

I am new to the kotlin coroutines, I see some of the api's are annotated with @InternalCoroutinesApi. From the official documentation it says that

不应在kotlinx.coroutines

我不清楚他们是什么意思.
有人可以详细说明吗?

I cannot clearly understand what does they mean.
Can anyone elaborate it?

推荐答案

此批注

标记协程API内部的声明,这意味着 不应在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.

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

这篇关于InternalCoroutinesApi注释是什么意思的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆