nwh
07/10/2018, 11:20 PMval DB = Executors.newCachedThreadPool(object : ThreadFactory {
var i = 0
override fun newThread(r: Runnable?) = Thread("db-${i++}")
}).asCoroutineDispatcher()
If I use it like this:
launch(DB) {
val records = ...;
// A
}
Will code in A be tying up threads from the dispatcher?