SHARE
TWEET

Untitled

a guest Jun 19th, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fun save(multiMeasurement: Mono<MultiMeasurement>) =
  2.     multiMeasurement.map(MultiMeasurement::validate)
  3.         .flatMapMany { measurementCollector.save(it) }
  4.         .doOnNext { eventSender.sendEvent(it.toMeasurementItem()) }
  5.         .then(statusFacade.save(multiMeasurement))
  6.         .doOnNext { eventSender.sendEvent(it.toStatusUpdateItem()) }
  7.         .flatMap { toSettings(it.deviceId) }
  8.      
  9. |_  Mono.flatMap ⇢ com.openbrewery.beerbob.status.StatusCollector.save(StatusCollector.kt:15)
  10. |_  Flux.then ⇢ com.openbrewery.beerbob.measurement.MeasurementFacade.save(MeasurementFacade.kt:21)
  11. |_  Mono.doOnNext ⇢ com.openbrewery.beerbob.measurement.MeasurementFacade.save(MeasurementFacade.kt:22)
  12. |_  Mono.flatMap ⇢ com.openbrewery.beerbob.measurement.MeasurementFacade.save(MeasurementFacade.kt:23)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top