isWritingDom property
bool
get
isWritingDom
Indicates to users that we are currently processing items in the write queue.
Client can optimize calls by not adding into the queue but instead is safe to execute the write synchronously.
Example: if (domService.isWritingDom) { writeClientMetrics(); } else { domService.scheduleWrite(writeClientMetrics); }
Implementation
bool get isWritingDom => (_state == DomServiceState.Writing);