Last active
June 22, 2020 14:16
-
-
Save maxandersen/a28d02340cc3573fbc6fdb4513e1cf5f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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