-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fix limitedParallelism implementation on K/N #3226
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
Conversation
The initial implementation predates new memory model and was never working on it Fixes #3223
} | ||
val j2 = launch(view2) { j1.cancel() } | ||
joinAll(j1, j2) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: move this test to the JS source-set, and move the testTaskFairness
test from the JVM source-set to concurrent
. This way, there will still be two versions of the test, but each one will be the most specific one for each target.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left this one as is to still have common coverage and added test with newSingleThreadContext
to concurrent
source set. Juggled with names a bit as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, but I think having this test looks confusing. Maybe add a comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, done
3ddac07
to
135a3e6
Compare
The initial implementation predates new memory model and was never working on it Fixes Kotlin#3223
The initial implementation predates new memory model and was never working on it
Fixes #3223