summaryrefslogtreecommitdiff
path: root/xmake/core/sandbox/modules/process.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-02-05 22:33:46 +0800
committerruki <[email protected]>2020-02-07 22:45:56 +0800
commit69a092643d7725dce1f6fbf7b90ddb3e6f15370e (patch)
treed86f3b08dddc1ec5b0b1dea0f8d035b9f1459dfb /xmake/core/sandbox/modules/process.lua
parent35ffc50b1dc6abc88586ac1986607db16772c686 (diff)
uses runjobs instead of process.asyncrun
Diffstat (limited to 'xmake/core/sandbox/modules/process.lua')
-rw-r--r--xmake/core/sandbox/modules/process.lua26
1 files changed, 0 insertions, 26 deletions
diff --git a/xmake/core/sandbox/modules/process.lua b/xmake/core/sandbox/modules/process.lua
index de46625a1..6b9a16728 100644
--- a/xmake/core/sandbox/modules/process.lua
+++ b/xmake/core/sandbox/modules/process.lua
@@ -113,31 +113,5 @@ function sandbox_process.openv(filename, argv, opt)
return proc
end
--- wait processes
-function sandbox_process.waitlist(processes, timeout)
-
- -- check
- assert(processes)
-
- -- wait them
- local count, infos = process.waitlist(processes, timeout)
- if count < 0 then
- raise("wait processes(%d) failed(%d)", #processes, count)
- end
-
- -- timeout or finished
- return infos
-end
-
--- async run task and echo waiting info
-function sandbox_process.asyncrun(task, waitchars)
-
- -- async run it
- local ok, errors = process.asyncrun(task, waitchars)
- if not ok then
- raise(errors)
- end
-end
-
-- return module
return sandbox_process