Skip to content

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.

License

Notifications You must be signed in to change notification settings

breuerlukas/iteron

Repository files navigation

Iteron

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.

Status

Build Status
main Java CI with Gradle

Installation

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")
}

Example

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();

License

GPL

About

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.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 2

  •  
  •  

Languages