Skip to content

Commit 80aa1b6

Browse files
committed
Cleanup
1 parent adf3a11 commit 80aa1b6

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

Diff for: kotlinx-coroutines-core/jvm/src/Executors.kt

-8
Original file line numberDiff line numberDiff line change
@@ -189,14 +189,6 @@ private class ResumeUndispatchedRunnable(
189189
}
190190
}
191191

192-
private class ResumeDispatchedRunnable(
193-
private val continuation: CancellableContinuation<Unit>
194-
) : Runnable {
195-
override fun run() {
196-
continuation.resume(Unit)
197-
}
198-
}
199-
200192
/**
201193
* An implementation of [DisposableHandle] that cancels the specified future on dispose.
202194
* @suppress **This is unstable API and it is subject to change.**

Diff for: kotlinx-coroutines-core/jvm/test/scheduling/CoroutineDispatcherTest.kt

-5
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,17 @@ class CoroutineDispatcherTest : SchedulerTestBase() {
1616
@Test
1717
fun testSingleThread() = runBlocking {
1818
corePoolSize = 1
19-
println("1. Thread is ${Thread.currentThread()}")
2019
expect(1)
2120
withContext(dispatcher) {
2221
require(Thread.currentThread() is CoroutineScheduler.Worker)
23-
println("2. Thread is ${Thread.currentThread()}")
2422
expect(2)
2523
val job = async {
26-
println("3. Thread is ${Thread.currentThread()}")
2724
expect(3)
2825
delay(10)
29-
println("4. Thread is ${Thread.currentThread()}")
3026
expect(4)
3127
}
3228

3329
job.await()
34-
println("5. Thread is ${Thread.currentThread()}")
3530
expect(5)
3631
}
3732

0 commit comments

Comments
 (0)