How to properly handle/shut down custom coroutine dispatcher in Kotlin?

后端 未结 0 1179
梦毁少年i
梦毁少年i 2020-12-04 10:52

Consider this piece of code:

val coroutineDispatcher = Executors.newFixedThreadPool(8).asCoroutineDispatcher()

fun main() = runBlocking {
    launch(coroutin         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题