Skip to content

Instantly share code, notes, and snippets.

@danielkec
Created March 20, 2020 13:50
Show Gist options
  • Select an option

  • Save danielkec/183d6037dcc5ed05f7189cf146d3ddb8 to your computer and use it in GitHub Desktop.

Select an option

Save danielkec/183d6037dcc5ed05f7189cf146d3ddb8 to your computer and use it in GitHub Desktop.
@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