detachAll method

void detachAll()

Drops every attachment. The transport keeps whatever else it owns — a listening socket, a handle file — and decides separately what to do with it.

Implementation

void detachAll() {
  for (var peer in _attached.toList()) {
    detach(peer);
  }
}