Davide Giuseppe Farella
Test finished with active jobs
scope.launch(Io) { withTimeout(500) { while (stack.isEmpty()) { delay(1) // await } result.data = stack.removeFirst() } }
val j = scope.launch(Io) { while (stack.isEmpty()) { delay(1) // await } result.data = stack.removeFirst() } scope.launch { delay(500) j.cancel() }
tseisel
delay
Channel
runBlockingTest
<http://Dispatchers.IO|Dispatchers.IO>
TestCoroutineDispatcher
Io
IO
interface DispatchersProvider { val Main: CoroutineDispatcher val Comp: CoroutineDispatcher val Io: CoroutineDispatcher }
A modern programming language that makes developers happier.