-
-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request]Job timeout #482
Comments
FWIW, I have implemented this in my abstraction of spawn. Feel free to yoink this for plenary. Its basically just making everything async and "waiting" until a |
In my case, I use a wrapper to kill jobs by timeout. wrapFunc = function(someFuncReturnPid, timeout)
timeout = timeout or 5000
local pid = someFuncReturnPid
local timer = vim.loop.new_timer()
timer:start(timeout, 0, function()
vim.loop.kill(pid)
print('job timeout')
end)
end I think that wrapper approach is redundant. So I want a timeout option. |
|
Wouldn't it be more convenient to have timout in the |
Commands in plenary.nvim's job sometimes take a long time to resolve, which can be frustrating for users. To address this, I propose adding a timeout option to the plugin's job feature. This would allow users to set a timeout for commands and automatically quit the command with an error message if it takes too long to execute.
The text was updated successfully, but these errors were encountered: