Fabio Tudone
06/21/2018, 1:01 PMgildor
06/21/2018, 1:19 PMFabio Tudone
06/21/2018, 1:32 PMgildor
06/21/2018, 1:34 PMgildor
06/21/2018, 1:35 PMFabio Tudone
06/21/2018, 1:40 PMoffer doesn't block the thread though, is there a way to synchronize threads and coroutines? I guess offer would always fail on unbuffered channelsFabio Tudone
06/21/2018, 1:48 PMgildor
06/21/2018, 5:14 PMbdawg.io
06/21/2018, 9:20 PMCompletableFuture) fun doSomething() = async { doCoroutine() }.asCompletableFuture()gildor
06/21/2018, 11:34 PMlouiscad
06/22/2018, 10:37 AMsendBlocking(…) to send something from blocking world to coroutine world through a channelelizarov
06/22/2018, 11:43 AMfun doSomething() = future { doCoroutine() } as opposed to async ( ... }.asCompletableFuture(). The former is more efficient.Daniel Tam
06/23/2018, 4:40 AMelizarov
06/23/2018, 12:06 PMfuture { ... } you immediately make it clear to the reader that you are planning to return a CompletableFuture. No need to read to the end of the code to learn that.