Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@maxandersen
Last active June 22, 2020 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxandersen/a28d02340cc3573fbc6fdb4513e1cf5f to your computer and use it in GitHub Desktop.
Save maxandersen/a28d02340cc3573fbc6fdb4513e1cf5f to your computer and use it in GitHub Desktop.
//usr/bin/env jbang "$0" "$@" ; exit $?
//DEPS io.smallrye.reactive:mutiny:0.5.3
public class mutiny {
public static void main(String... args) {
io.smallrye.mutiny.Multi.createFrom().items("hello", "world")
.onItem().apply(s->s.toUpperCase() + " ")
.onCompletion().continueWith("!")
.subscribe().with(System.out::print);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment