Skip to content

Include internal declarations in the API dump #4443

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

dkhalanskyjb
Copy link
Collaborator

@dkhalanskyjb dkhalanskyjb commented May 23, 2025

  • Some kotlinx.coroutines.internal APIs affect binary compatibility, like ThreadLocalKey does through public suspend inline fun ThreadLocal<*>.isPresent(): Boolean = coroutineContext[ThreadLocalKey(this)] !== null.
  • Even the non-exposed public APIs in kotlinx.coroutines.internal are being used, so even though we have the right to freely move and remove them, we should at least treat the changes a bit more cautiously than we would truly internal API.

The rationale is that people are using these functions,
so even though we have the right to freely move and remove them,
we should at least treat the changes a bit more cautiously than
we would truly internal API.
@dkhalanskyjb dkhalanskyjb requested a review from qwwdfsad May 23, 2025 06:48
The train already excludes `check` and `test`, which automatically
disables API dump checks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants