setSyncOutputMode method

  1. @override
void setSyncOutputMode(
  1. bool enabled
)
override

Implementation

@override
void setSyncOutputMode(bool enabled) {
  if (enabled == _syncOutputMode) return;
  _syncOutputMode = enabled;
  if (enabled) {
    _syncFailsafeTimer?.cancel();
    _syncFailsafeTimer = Timer(_syncOutputTimeout, _syncOutputFailsafe);
  } else {
    _syncFailsafeTimer?.cancel();
    _syncFailsafeTimer = null;
    // ESU: no explicit flush here — [write] notifies once after the parser
    // returns, now that [_syncOutputMode] no longer suppresses it.
  }
}