I want to use the MutableVec to calculate, lets say, the sum of a Vector whenever something changes, to do that It seems one way would be to turn the MutableVec into a stream and them use the scan operator on it, but after that I don't want to be notified of every sum change whitout losses, I want it to behave like a signal again and get the changes only when it is polled. It would be kind of turning the stream result into a signal again. What would be the right way of doing it?
I want to use the MutableVec to calculate, lets say, the sum of a Vector whenever something changes, to do that It seems one way would be to turn the MutableVec into a stream and them use the scan operator on it, but after that I don't want to be notified of every sum change whitout losses, I want it to behave like a signal again and get the changes only when it is polled. It would be kind of turning the stream result into a signal again. What would be the right way of doing it?