kevinherron
10/30/2018, 11:37 PMgroostav
10/31/2018, 12:38 AMExecutorService and then call the extension function asCoroutineDispatcher(), that would get you running on threads named whatever you wantedgroostav
10/31/2018, 12:39 AMCoroutineName eg:
suspend fun doWork(workItem: WorkItem){
withContext(CoroutineName("My-API-$workItem") + IOPool){
//do IO work that your lib offers, or similar
}
}kevinherron
10/31/2018, 1:11 AMkevinherron
10/31/2018, 1:11 AMkevinherron
10/31/2018, 1:11 AM