dispose method

dynamic dispose()

Implementation

dispose() {
  for (int token in _task.keys) {
    TaskDownload dw = _task[token]!;
    dw.rcvPort.close();
    dw.statusDownload.close();
    dw.root.kill(priority: Isolate.immediate);
  }
  _task.clear();
  _init = false;
}