A wrapper for running Kotlin coroutines in Java code.
Create a new Crouton.
Crouton crouton = new Crouton();
Then run one of the async methods.
If you want to stop a task call the stop()
method in the JobWrapper
.
repositories {
maven { url 'https://jitpack.io' }
}
compile 'com.github.clubobsidian:crouton:0.6.1'
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.clubobsidian</groupId>
<artifactId>crouton</artifactId>
<version>0.6.1</version>
</dependency>