SignalK / SensESP

Universal Signal K sensor framework for the ESP32 platform
https://signalk.org/SensESP/
Apache License 2.0
150 stars 81 forks source link

Make ValueProducer<T> equivalent to ObservableValue<T> #554

Open mairas opened 2 years ago

mairas commented 2 years ago

ObservableValue<T> is a somewhat thin extension of ValueProducer<T>. The former is used for injecting values into the SensESP data processing flow, but the naming is somewhat unfortunate because ObservableValue is not just an Observable but also a Producer.

I wonder what would happen if the ObservableValue functionality would be implemented directly in ValueProducer? Would the operator overloading cause any issues in regular inheritance use cases?