cancel method

void cancel()

Ends the line and erases it.

Implementation

void cancel() {
  if (_closed) return;
  _closed = true;
  _stopwatch.stop();
  _shutdown();
  _write(_clearLine);
}