stop method

Future<void> stop()
inherited

Stops/closes this server.

Implementation

Future<void> stop() async {
  if (!_started || _stopping || isStopped) return;
  _stopping = true;

  await _stopImpl();

  _stoppedCompleter.complete(true);
}