We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49f522e commit 703b99aCopy full SHA for 703b99a
kotlinx-coroutines-core/jvm/src/Executors.kt
@@ -139,7 +139,7 @@ internal abstract class ExecutorCoroutineDispatcherBase : ExecutorCoroutineDispa
139
}
140
141
private fun cancelJobOnRejection(context: CoroutineContext, exception: RejectedExecutionException) {
142
- context[Job]?.cancel(CancellationException("The task was rejected", exception))
+ context.cancel(CancellationException("The task was rejected", exception))
143
144
145
override fun close() {
0 commit comments