shutdown static method

Future<void> shutdown()

Implementation

static Future<void> shutdown() async {
  _isolate?.kill(priority: Isolate.immediate);
  _isolate = null;
  _port = null;
  _pending.clear();
}