Skip to content

Instantly share code, notes, and snippets.

@jeroenr
Created November 28, 2019 10:36
Show Gist options
  • Save jeroenr/0cc205f09d6d938d16de3543989bcb03 to your computer and use it in GitHub Desktop.
Save jeroenr/0cc205f09d6d938d16de3543989bcb03 to your computer and use it in GitHub Desktop.
interface Service {
Mono<String> create(String s);
Mono<Void> update(String s);
}
class Foo {
private final Service service;
Mono<Integer> problem() {
return service.create("foo").map(foo -> {
service.update(foo).subscribe();
return foo.length();
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment