Saiedmomen
06/01/2021, 11:20 AMinternal
or private
.
I know the reason for limiting the public API but an optIn annotation might be enough.
Right now we have to copy huge amounts of code in order to have a working custom component. Code that won't get maintained or fixed easily.
If we could opt in to them, our code would break on upgrades but we would still get the benefits and fixes after fixing them.Saiedmomen
06/01/2021, 11:28 AMHalil Ozercan
06/01/2021, 11:34 AMArkadii Ivanov
06/01/2021, 11:50 AMSaiedmomen
06/01/2021, 11:56 AMArkadii Ivanov
06/01/2021, 11:59 AMArkadii Ivanov
06/01/2021, 11:59 AMSaiedmomen
06/01/2021, 12:08 PMArkadii Ivanov
06/01/2021, 12:09 PMSaiedmomen
06/01/2021, 12:10 PMArkadii Ivanov
06/01/2021, 12:12 PMSaiedmomen
06/01/2021, 12:14 PMSaiedmomen
06/01/2021, 12:28 PMArkadii Ivanov
06/01/2021, 12:30 PMSaiedmomen
06/01/2021, 12:59 PMAdam Powell
06/01/2021, 1:25 PMAdam Powell
06/01/2021, 1:27 PMAdam Powell
06/01/2021, 1:29 PMSaiedmomen
06/01/2021, 1:47 PMSaiedmomen
06/01/2021, 1:51 PMAdam Powell
06/01/2021, 1:59 PMAdam Powell
06/01/2021, 1:59 PMSaiedmomen
06/03/2021, 6:48 PM@InternalCoroutinesApi
annotation in Coroutines that I encountered today.
/**
* 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.
*/
@Retention(value = AnnotationRetention.BINARY)
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.TYPEALIAS, AnnotationTarget.PROPERTY)
@RequiresOptIn(
level = RequiresOptIn.Level.ERROR, message = "This is an internal kotlinx.coroutines API that " +
"should not be used from outside of kotlinx.coroutines. No compatibility guarantees are provided." +
"It is recommended to report your use-case of internal API to kotlinx.coroutines issue tracker, " +
"so stable API could be provided instead"
)
public annotation class InternalCoroutinesApi
Arkadii Ivanov
06/03/2021, 7:01 PMSaiedmomen
06/03/2021, 7:13 PMSaiedmomen
06/03/2021, 7:29 PM