1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-10 05:13:38 +00:00

Added cancel() to file-search

This commit is contained in:
Bryan Roe
2020-11-13 00:47:36 -08:00
parent 326d5908e0
commit f5419f9c8d
2 changed files with 9 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@@ -72,6 +72,10 @@ function filesearch()
ret.child.stdin.write(' ForEach-Object -Process { $sw.WriteLine($_.FullName); $sw.Flush(); }\r\n');
ret.child.stdin.write('exit\r\n');
ret.cancel = function cancel()
{
this.child.kill();
}
return (ret);
};
break;
@@ -131,6 +135,10 @@ function filesearch()
this.stdout.p.emit('end');
this.stdout.p._res();
});
ret.cancel = function cancel()
{
this.child.kill();
}
return (ret);
};
break;