June 2018
Intermediate to advanced
316 pages
6h 34m
English
If you use the Maven build system, you should add the following line to the configuration tag:
<arg>-Xcoroutines=enable</arg>
We need this because the coroutines feature has an experimental status now. The configuration tag will look as follows:
<configuration> <args> <arg>-Xcoroutines=enable</arg> </args></configuration>
To add the kotlin-coroutines-core library (https://github.com/Kotlin/kotlinx.coroutines/tree/master/core/kotlinx-coroutines-core), you should add the following dependency:
<dependency> <groupId>org.jetbrains.kotlinx</groupId> <artifactId>kotlinx-coroutines-core</artifactId> <version>0.21</version></dependency>
This library contains common functions, such as launch and async.
Read now
Unlock full access