A store observation handler is called whenever an active store observer
receives new results.
Call signalNext() to signal that the handler is ready to receive the next
callback from the store observer. This is a mechanism for handling
backpressure when updates arrive faster than the handler can process them.
Until signalNext() is called, Ditto pauses further callbacks while
continuing to apply changes to the local store. If multiple relevant changes
occur while callbacks are paused, Ditto does not queue a callback for each
change. After signalNext() is called, Ditto invokes the handler at most once
with the latest result, and only if that result differs from the last result
delivered.
A store observation handler is called whenever an active store observer receives new results.
Call
signalNext()to signal that the handler is ready to receive the next callback from the store observer. This is a mechanism for handling backpressure when updates arrive faster than the handler can process them. UntilsignalNext()is called, Ditto pauses further callbacks while continuing to apply changes to the local store. If multiple relevant changes occur while callbacks are paused, Ditto does not queue a callback for each change. AftersignalNext()is called, Ditto invokes the handler at most once with the latest result, and only if that result differs from the last result delivered.