Last active
November 28, 2019 14:24
-
-
Save jeroenr/c4a9a155deb816d639d61ff58f90ba54 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
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