Rafał Kuźmiński
12/02/2023, 6:47 PMDaniel Pitts
12/02/2023, 6:48 PMinternal
which sort of means module-private .Daniel Pitts
12/02/2023, 6:49 PMRafał Kuźmiński
12/02/2023, 6:50 PMDaniel Pitts
12/02/2023, 6:52 PMDaniel Pitts
12/02/2023, 6:52 PMRafał Kuźmiński
12/02/2023, 6:55 PMDaniel Pitts
12/02/2023, 6:56 PMDaniel Pitts
12/02/2023, 6:57 PMRafał Kuźmiński
12/02/2023, 6:57 PMDaniel Pitts
12/02/2023, 6:59 PMInternalApi
annotation, and mark it as RequiresOptIn
Daniel Pitts
12/02/2023, 6:59 PMcoroutines
library:
/**
* 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
Daniel Pitts
12/02/2023, 6:59 PMDaniel Pitts
12/02/2023, 7:01 PMRafał Kuźmiński
12/02/2023, 7:03 PMDaniel Pitts
12/02/2023, 7:05 PMDaniel Pitts
12/02/2023, 7:06 PMRafał Kuźmiński
12/02/2023, 7:06 PM