Comments (3)
The test outcome depends on the available parallelism of the test environment. So it's deterministic, but it will always fail for some users.
The bug appears to be in kotlinx-coroutines-core/jvm/src/scheduling/Dispatcher.kt
. There's a branch on available parallelism:
if (parallelism >= CORE_POOL_SIZE) {
return namedOrThis(name)
}
This makes me wonder what other behaviors aren't being tested because of the test env configuration...
from kotlinx.coroutines.
The test passes for me, and the JetBrains CI is green (1bffe67). So, seems like an issue on your side.
Also, the single-parameter limitedParallelism
overload isn't simply deprecated, it's replaced with a two-parameter overload where the second parameter has a default value, so passing just one parameter should still work.
from kotlinx.coroutines.
The failing case seems somewhat unnecessary since the function being tested is
@deprecated
.
limitedParallelism(parallelism: Int, name: String? = null)
is not deprecated, and limitedParallelism(2)
at the problematic call site resolves to it, not to a deprecated overload.
Anyway, @nreid260 could you please elaborate on how to reproduce the issue?
from kotlinx.coroutines.
Related Issues (20)
- BlockHound false positive in kotlin.jvm.internal.Reflection.renderLambdaToString HOT 3
- java.lang.NullPointerException: Cannot invoke "kotlinx.coroutines.flow.Flow.collect when bumping up coroutines 1.6.4 to 1.8.1 HOT 3
- Improve the API reference HOT 4
- Coroutine on EventLoop dispatcher fails to yield to a task which is resuming after a delay HOT 5
- TestScope swallows an exception thrown from `launch` outside `runTest` HOT 4
- Exceptions being swallowed during tests / UncaughtExceptionsBeforeTest HOT 6
- Flow collection silently hangs when dispatcher throws an exception
- Suggestion for a potential new Flow's `timeout` extension HOT 3
- Mutex is unlocked on cancellation HOT 2
- Crash on GraalVM at `1.9.0-RC` HOT 11
- Non-linearizable behavior in `cancel` + `awaitClose` inside of `produce` HOT 1
- Inherit from `kotlinx.coroutines` warning even with interface delegation ? HOT 1
- Consider stabilizing `CoroutineStart.ATOMIC` HOT 2
- 1.9.0-RC: `kotlinx-coroutines-core/jvm/src/internal/ProbesSupport.kt` calls ` kotlinx.coroutines.debug.internal.probeCoroutineResumed` HOT 1
- CancellableContinuation.invokeOnCancellation should accept a suspend callback HOT 16
- ActorCoroutine with ConflatedBufferedChannel capactiy HOT 1
- Calling CompletionStage.asDeferred() on the same future many times causes stack overflows HOT 3
- [Performance impacting] Upgrade Android Build rules to use standard android library Gradle plugin
- Flow.catch skips upstream exceptions HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kotlinx.coroutines.