Skip to content

Restore Android compatibility in Executor.asCoroutineDispatcher #4396

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

Merged
merged 5 commits into from
Apr 3, 2025

Conversation

dkhalanskyjb
Copy link
Collaborator

@dkhalanskyjb dkhalanskyjb commented Mar 26, 2025

@dkhalanskyjb dkhalanskyjb requested a review from qwwdfsad March 26, 2025 11:39
@@ -18,3 +21,20 @@ internal actual annotation class BenignDataRace()
@Suppress("NOTHING_TO_INLINE") // So that R8 can completely remove ConcurrentKt class
internal actual inline fun <E> identitySet(expectedSize: Int): MutableSet<E> =
Collections.newSetFromMap(IdentityHashMap(expectedSize))

private val REMOVE_FUTURE_ON_CANCEL: Method? = try {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we drop a comment that it's for Android 21+ compatibility?

@dkhalanskyjb dkhalanskyjb merged commit 6baf7c8 into develop Apr 3, 2025
1 check passed
@dkhalanskyjb dkhalanskyjb deleted the dkhalanskyjb/fix-animal-sniffer branch April 3, 2025 12:00
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