stop method

Future<void> stop()

Stops the client, then closes the key store and the vault, even when the client's stop throws; that error then propagates.

A second call waits for the first and does nothing else, throwing nothing.

Implementation

Future<void> stop() {
  final running = _stopping;
  if (running != null) return running.then((_) {}, onError: (Object _) {});
  return _stopping = _stop();
}