mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 21:06:46 +00:00
fix(async): make asyncs abortable
This commit is contained in:
parent
c882227f1f
commit
1fad61712b
7 changed files with 29 additions and 8 deletions
|
@ -93,7 +93,7 @@ function Process:_run()
|
|||
end)
|
||||
self:suspend()
|
||||
while not (self.handle:is_closing() and stdout:is_closing() and stderr:is_closing()) do
|
||||
coroutine.yield()
|
||||
Async.yield()
|
||||
end
|
||||
else
|
||||
self.data = "Failed to spawn process " .. self.cmd .. " " .. vim.inspect(self.opts)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue