Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 1.2 KB

README.md

File metadata and controls

48 lines (33 loc) · 1.2 KB

crouton

test Known Vulnerabilities License

A wrapper for running Kotlin coroutines in Java code.

Usage

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.

Setting up as a dependency

Gradle

repositories {
	maven { url 'https://jitpack.io' }
}

compile 'com.github.clubobsidian:crouton:0.6.1'

Maven

<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>