mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-20 05:16:45 +00:00
perf: suspend when tasks are active
This commit is contained in:
parent
c7ed87f9ca
commit
2f4ac035bc
2 changed files with 21 additions and 2 deletions
|
@ -153,7 +153,9 @@ function Runner:_start()
|
|||
end
|
||||
continue(true)
|
||||
end
|
||||
coroutine.yield()
|
||||
if active > 0 then
|
||||
self._running:suspend()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue