Allow to flush any pending notifications using endBatch

Useful if the observed object is updated / reset and you don't want observers notified