detachAll method

void detachAll()

Forgets every peer — what a hot restart means for attachments made to the isolate that no longer exists.

Implementation

void detachAll() {
  for (var peer in _peers.values.toList()) {
    core.detach(peer);
  }
  _peers.clear();
}