thanerian
12/16/2019, 12:08 PMfun someFunction(something: Foo): Mono<Foo> {
fooRepository.find()
.flatMap { zoo ->
Mono.create { functionThatReturnsZoo() } //or how Reactor create a Mono instance( i'm not familiar with that lib)
.flatMap { changed ->
fooRepository.save(zoo)// or changed
}
}
}