kill static method
终止指定名称的isolate
Implementation
static void kill(String name) {
final isolate = _isolates[name];
if (isolate != null) {
isolate.kill();
_isolates.remove(name);
final receivePort = _receivePorts[name];
if (receivePort != null) {
receivePort.close();
_receivePorts.remove(name);
}
}
}