TODO
Gradle, Maven, IntelliJ IDEA
- enable coroutines
- add dependency on kotlinx.coroutines
Let's look at some common APIs. Java 7 added AsynchronousFileChannel
and other non-blocking IO APIs. The kotlinx-coroutines-nio
library wraps these APIs into coroutines making them nice and straightforward.
Gradle:
compile 'org.jetbrains.kotlinx:kotlinx-coroutines-nio:0.6-rc'
Maven: TODO