reset static method

  1. @visibleForTesting
Future<void> reset()

Tears down the active inspector, forgets every onReassemble callback and re-arms the gates, so a test can run several activations in one process. Not part of the server-facing API.

Implementation

@visibleForTesting
static Future<void> reset() async {
  _started = false;
  _configuredName = null;
  _configuredRoot = null;
  _Reassembly._callbacks.clear();
  var inspector = _inspector;
  _inspector = null;
  await inspector?.stop();
}