Skip to content

Instantly share code, notes, and snippets.

@jeroenr
Last active November 28, 2019 14:24
Show Gist options
  • Save jeroenr/c4a9a155deb816d639d61ff58f90ba54 to your computer and use it in GitHub Desktop.
Save jeroenr/c4a9a155deb816d639d61ff58f90ba54 to your computer and use it in GitHub Desktop.
interface Service {
Flux<String> observe();
Mono<Void> save(String s);
}
class Foo {
private final Service service;
void longRunningProblem() {
service.observe()
.flatMap(service::save, 10)
.subscribeOn(Schedulers.elastic())
.subscribe();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment