Created
March 20, 2020 13:50
-
-
Save danielkec/183d6037dcc5ed05f7189cf146d3ddb8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| @Outgoing("int-channel") | |
| public Publisher<Integer> produceInts() { | |
| return Flowable.just(1, 2, 3); | |
| } | |
| @Incoming("int-channel") | |
| public void consumeInt(Integer value) { | |
| System.out.println("Consuming Integer: " + value); | |
| } | |
| > Consuming Integer: 1 | |
| > Consuming Integer: 2 | |
| > Consuming Integer: 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment