The GOal of this article is praiseworthy, but it makes some very wrong assumptions, since, as you mentioned, you’re not familiar with Go.

First, regarding threads. Go uses same concept as thread pool as Kotlin. It just doesn’t provide you with an ability to create your own pool.

In Go deferred can be represented as an out channel you return from your function. It’s very awkward, but works.

Solutions Architect @Depop, author of “Hands-on Design Patterns with Kotlin” book and “Web Development with Kotlin” course

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store