unscheduleSerializationFor method
- RestorationBucket bucket
Called by a RestorationBucket to unschedule a request for serialization.
This method is called by a bucket in the hierarchy whenever it no longer needs to be serialized (e.g. because the bucket got disposed).
It is safe to call this even when the bucket wasn't scheduled for serialization before.
It is exposed to allow testing of RestorationBuckets in isolation.
Implementation
@protected
@visibleForTesting
void unscheduleSerializationFor(RestorationBucket bucket) {
assert(bucket._manager == this);
assert(!_debugDoingUpdate);
_bucketsNeedingSerialization.remove(bucket);
}