id="source">
  <h2><span>Implementation</span></h2>
  <pre class="language-dart"><code class="language-dart">@override
void stop() {
  &#47;&#47; Complete any pending acknowledgements with an error to indicate that
  &#47;&#47; the router is stopping.
  for (final c in _ackCompleters.values) {
    c.completeError(const ExceptionIsNotRunning());
  }

  &#47;&#47; Clear the map of acknowledgement completers to release resources.
  _ackCompleters.clear();

  &#47;&#47; Call the superclass&#39;s stop method to 