summaryrefslogtreecommitdiff
path: root/xmake/modules/private/async/jobpool.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-05-12 00:37:42 +0800
committerruki <[email protected]>2021-05-12 00:37:42 +0800
commit4e67226f86e1949d1087893cd8fe218535d91ba9 (patch)
treeab02507940eabe403903b4ce80ec353681510223 /xmake/modules/private/async/jobpool.lua
parenta19a2e76fbd8abe1f592f013776a8776a758aa1f (diff)
isolate coroutine
Diffstat (limited to 'xmake/modules/private/async/jobpool.lua')
-rw-r--r--xmake/modules/private/async/jobpool.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/private/async/jobpool.lua b/xmake/modules/private/async/jobpool.lua
index 2709db341..299700534 100644
--- a/xmake/modules/private/async/jobpool.lua
+++ b/xmake/modules/private/async/jobpool.lua
@@ -39,11 +39,11 @@ end
--
-- @param name the job name
-- @param run the run command/script
--- @param opt the options (rootjob, envs)
+-- @param opt the options (rootjob)
--
function jobpool:addjob(name, run, opt)
opt = opt or {}
- return self:add({name = name, run = run, envs = opt.envs}, opt.rootjob)
+ return self:add({name = name, run = run}, opt.rootjob)
end
-- add job to the given job node