Iteron is a tiny Java framework for asynchronous iteration. It lets you work with sequences, streams, and event-driven data without blocking threads. The API is simple and composable, so you can produce, transform, and consume data step by step.
| Build Status | |
|---|---|
| main |
repositories {
maven {
url = uri("https://maven.pkg.github.com/breuerlukas/iteron")
credentials {
username = project.findProperty("gpr.user")?.toString() ?: System.getenv("GITHUB_USERNAME")
password = project.findProperty("gpr.token")?.toString() ?: System.getenv("GITHUB_TOKEN")
}
}
}
dependencies {
implementation("de.lukasbreuer:iteron:1.0.0-SNAPSHOT")
}
var original = Lists.newArrayList(1, 2, 3);
var futureResponse = AsyncIterator.execute(original, entry ->
CompletableFuture.completedFuture(entry + 1));
futureResponse.thenAccept(transformed ->
transformed.forEach(System.out::println)).join();