kMaxNotificationDepth top-level constant
int
const kMaxNotificationDepth
Maximum notification depth allowed before ListenerRegistry.notifyAll aborts with a descriptive error instead of overflowing the call stack. Guards against update cycles (a listener of A writing B, whose listener writes back to A, forever).
Profundidade máxima de notificação permitida antes que ListenerRegistry.notifyAll aborte com um erro descritivo em vez de estourar a pilha de chamadas. Protege contra ciclos de atualização (um listener de A escrevendo em B, cujo listener escreve de volta em A, indefinidamente).
Implementation
const int kMaxNotificationDepth = 100;