https://kotlinlang.org logo
#coroutines
Title
# coroutines
e

enleur

10/12/2018, 10:31 AM
it is funny to watch how in Golang they are trying to solve problems that was solved in kotlin by design https://posener.github.io/goroutine-scoped-context/ (coroutineContext) https://github.com/golang/go/issues/27982 (job cancel) in my production code I found myself using channels only twice and never had to use selects. at the same time in Golang.. well, you don’t have any deferred/promise from the box and have to do workarounds with channels, selects, sync.Wait and if you want to do cancel or timeout you will end up with tons of boilerplate code
e

elizarov

10/12/2018, 10:35 AM
This is not surprising. We’ve closely studied Go patterns when designing Kotlin coroutines with a goal to simplify the common patterns people use there and reduce the corresponding boilerplate. Hindsight is the best thing you can have when designing something.
👍 13
4 Views