Closed kaifox closed 4 years ago
Hi Kajetan,
instead of explaining how the idea of chain block vs fat blocks works I think a small implementation would be quicker :smile: We can then discuss here over the code if we like it or not.
The idea is that a ConnectorObservableValue
allows to connect and disconnect from a Supplier<ObservableValue<T>>
while a DynamicConnectorObservableValue
is able to change the ObservableValue<T>
in each connection. The use case you described with the property can then be externalized by binding an ObservableValue<ConnectionState>
to the connect and disconnect methods. What do you think?
There are some open questions about the behaviour.. also when we agree on the implementation I'll finish the tests and documentation
Codecov Report
100% <ø> (ø)
2 <0> (ø)
100% <ø> (+100%)
4 <0> (+4)
0% <0%> (ø)
0 <0> (?)
79.48% <0%> (-3.85%)
18 <0> (+1)
60% <100%> (+10%)
3 <1> (+1)
100% <100%> (ø)
4 <4> (?)
100% <100%> (ø)
1 <1> (?)
40.81% <40.81%> (ø)
5 <5> (?)
86.66% <86.66%> (ø)
6 <6> (?)
87.09% <87.09%> (ø)
8 <8> (?)
Continue to review full report at Codecov.