Skip to content

Instantly share code, notes, and snippets.

@danielkec

danielkec/ma11.java

Created Mar 20, 2020
Embed
What would you like to do?
@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