fix(task): run on_exit async. See #1569

This commit is contained in:
Folke Lemaitre 2024-06-28 00:35:38 +02:00
parent 461552474c
commit 60fe75c88d
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
3 changed files with 23 additions and 7 deletions

View file

@ -37,6 +37,7 @@ function Async:sleep(ms)
vim.defer_fn(function()
self.sleeping = false
end, ms)
coroutine.yield()
end
function Async:suspend()