groostav
04/26/2017, 8:08 AMkirillrakhman
04/26/2017, 8:13 AMgroostav
04/26/2017, 8:14 AMgroostav
04/26/2017, 8:15 AMkirillrakhman
04/26/2017, 8:16 AMgroostav
04/26/2017, 8:16 AMlaunch(CommonPool) { while(true) { ...
is really stupid, and I should be using launch(cachedThreadPool.asDispatcher()
kirillrakhman
04/26/2017, 8:16 AMfuture
for creating a coroutine that returns a CompletableFuture
groostav
04/26/2017, 8:18 AMsuspend fun read(): Message
instead of a fun read(): CompletableFuture<Message>
theregroostav
04/26/2017, 8:18 AMkirillrakhman
04/26/2017, 8:18 AMkirillrakhman
04/26/2017, 8:19 AMgroostav
04/26/2017, 8:19 AMpipe.read()
which is a wrapper on a blocking Win32 apigroostav
04/26/2017, 8:20 AMcachedThreadPool
kirillrakhman
04/26/2017, 8:21 AMgroostav
04/26/2017, 8:22 AMkirillrakhman
04/26/2017, 8:23 AMkirillrakhman
04/26/2017, 8:23 AMonStart
called multiple times?groostav
04/26/2017, 8:24 AMgroostav
04/26/2017, 8:25 AMkirillrakhman
04/26/2017, 8:26 AMgroostav
04/26/2017, 8:28 AMreadMessage()
synchronized block is, I want to express a map with a kind of run-off. Its not synchronizing for any good reason except I need to sorta check one collection and maybe modify another based on contentskirillrakhman
04/26/2017, 8:31 AMgroostav
04/26/2017, 8:33 AMgroostav
04/26/2017, 8:33 AMgo
and I remember wishing I had that stuff in java, now that I do I realize im too baked in to properly use it 😕groostav
04/26/2017, 8:40 AMreadMessage()
can become suspend fun readMessage(): MessageDTO = run(singleThreadedDispatcher)
groostav
04/26/2017, 8:40 AM