dispose method

void dispose()

Releases any transport resources held by this module.

On the native platform this closes pooled HTTP/2 connections and their keep-alive timers. Optional to call — idle connections are otherwise reaped automatically — but useful for a deterministic shutdown. No-op on the web platform.

Implementation

void dispose() {
  disposeTransport(this);
}