File tree 3 files changed +0
-13
lines changed
kotlinx-coroutines-core/jvm
3 files changed +0
-13
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -189,14 +189,6 @@ private class ResumeUndispatchedRunnable(
189
189
}
190
190
}
191
191
192
- private class ResumeDispatchedRunnable (
193
- private val continuation : CancellableContinuation <Unit >
194
- ) : Runnable {
195
- override fun run () {
196
- continuation.resume(Unit )
197
- }
198
- }
199
-
200
192
/* *
201
193
* An implementation of [DisposableHandle] that cancels the specified future on dispose.
202
194
* @suppress **This is unstable API and it is subject to change.**
Original file line number Diff line number Diff line change @@ -16,22 +16,17 @@ class CoroutineDispatcherTest : SchedulerTestBase() {
16
16
@Test
17
17
fun testSingleThread () = runBlocking {
18
18
corePoolSize = 1
19
- println (" 1. Thread is ${Thread .currentThread()} " )
20
19
expect(1 )
21
20
withContext(dispatcher) {
22
21
require(Thread .currentThread() is CoroutineScheduler .Worker )
23
- println (" 2. Thread is ${Thread .currentThread()} " )
24
22
expect(2 )
25
23
val job = async {
26
- println (" 3. Thread is ${Thread .currentThread()} " )
27
24
expect(3 )
28
25
delay(10 )
29
- println (" 4. Thread is ${Thread .currentThread()} " )
30
26
expect(4 )
31
27
}
32
28
33
29
job.await()
34
- println (" 5. Thread is ${Thread .currentThread()} " )
35
30
expect(5 )
36
31
}
37
32
You can’t perform that action at this time.
0 commit comments