clearThreads method

void clearThreads()

清空线程

Implementation

void clearThreads() {
  _threads.forEach((key, value) => value.cancel());
  _threads.clear();
}