omarkj
07/24/2017, 8:28 PMgroostav
07/24/2017, 8:52 PMasCoroutineDIspatcher()
on an ExecutorService
to convert any executor service into a context/dispatcherdekans
07/25/2017, 11:31 AMsuspend
, threads won't be blocked AFAIKomarkj
07/25/2017, 4:42 PMomarkj
07/25/2017, 4:43 PMgroostav
07/25/2017, 10:18 PMFileChannel/io
in some places, old-school streams in others, and even Kernel32 pipes in some. these objects dont have nice suspendable/CompletableFuture/callback-based API's so I'm left to writing wrapper functions that dedicate a thread to a blocking call and offer the result on a suspend fun
omarkj
07/25/2017, 10:21 PMomarkj
07/25/2017, 10:22 PM