mirror of https://github.com/folke/lazy.nvim.git
fix(runner): bring concurrency back
This commit is contained in:
parent
206d208018
commit
56075b57c4
|
@ -96,19 +96,21 @@ function Runner:_start()
|
||||||
waiting = waiting + 1
|
waiting = waiting + 1
|
||||||
wait_step = s.step
|
wait_step = s.step
|
||||||
elseif not running then
|
elseif not running then
|
||||||
local plugin = self:plugin(name)
|
if not self._opts.concurrency or active < self._opts.concurrency then
|
||||||
if s.step == #self._pipeline then
|
local plugin = self:plugin(name)
|
||||||
s.task = nil
|
if s.step == #self._pipeline then
|
||||||
plugin._.working = false
|
s.task = nil
|
||||||
elseif s.step < #self._pipeline then
|
|
||||||
active = active + 1
|
|
||||||
s.step = s.step + 1
|
|
||||||
step = self._pipeline[s.step]
|
|
||||||
if step.task == "wait" then
|
|
||||||
plugin._.working = false
|
plugin._.working = false
|
||||||
else
|
elseif s.step < #self._pipeline then
|
||||||
s.task = self:queue(plugin, step)
|
active = active + 1
|
||||||
plugin._.working = not not s.task
|
s.step = s.step + 1
|
||||||
|
step = self._pipeline[s.step]
|
||||||
|
if step.task == "wait" then
|
||||||
|
plugin._.working = false
|
||||||
|
else
|
||||||
|
s.task = self:queue(plugin, step)
|
||||||
|
plugin._.working = not not s.task
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue