coroutines

Modern Kotlin coroutine examples

View project on GitHub

Overview

  • This shows how to use Kotlin Coroutines
  • This gives some rationale for using Kotlin coroutines (over alternatives)

Target Audience

  • Java 8+ developers

Motivation

  • The Kotlin team already has great documentation.
  • After reading thru it, a few things were still unclear
  • The official examples are nice, but a little out-of-date.

Why Kotlin

Why coroutines

Examples

Comparisons

To Golang goroutines

To Guava ListenableFutures

To Java Futures

To Reactor