Skip to content
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

Don't depend on kotlinx-coroutines-swing #515

Merged
merged 1 commit into from Mar 9, 2022

Conversation

igordmn
Copy link
Collaborator

@igordmn igordmn commented Mar 9, 2022

Because it overrides Dispatchers.Main

Fixes JetBrains/compose-multiplatform#1943 on skiko side

Because it overrides Dispatchers.Main

Fixes JetBrains/compose-multiplatform#1943 on skiko side
@igordmn igordmn requested a review from olonho March 9, 2022 09:54
@@ -110,7 +109,7 @@ internal open class HardwareLayer(
// and its accessibility context. This timeout is used to deal with concurrency
// TODO Find more reliable procedure
resetFocusAccessibleJob?.cancel()
resetFocusAccessibleJob = GlobalScope.launch(Dispatchers.Swing) {
resetFocusAccessibleJob = GlobalScope.launch(MainUIDispatcher) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Maybe we rename MainUIDispatcher to Dispatchers.SkikoUI?

Copy link
Contributor

Choose a reason for hiding this comment

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

Well, it's hard question, as Dispatchers.XXX assumes that it's part of coroutines library. Guess we'd better keep as is.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ok

@igordmn igordmn merged commit 617eae5 into master Mar 9, 2022
@igordmn igordmn deleted the feature/embedSwingDispatcher branch March 9, 2022 15:47
manu-unter pushed a commit to manu-unter/skiko that referenced this pull request May 16, 2022
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.

Don't depend on kotlinx-coroutines-swing
2 participants