Skip to content

0.0.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@NoxMortem NoxMortem released this 20 Jul 19:55

Added Rx{List|Map}{Watch|Signal}[ReadOnly]

These classes allow to expose a different observable (e.g. a read only view on a mutable list) as the one used internally.

private readonly RxList<int> values = new RxList<int>();
public readonly  RxListSignalReadOnly<int> ValuesChanged => values.AsSignal().AsReadOnly();

A watch exposes fine granularity on operation level observables and all underlying methods will propagate elements.
A signal exposes the more general observer pattern approach and allows ot do many changes and signal only once. A signal will never fire on it's own and needs to be triggered manually via Signal().