diff options
| author | William Boman <william@redwill.se> | 2023-04-08 02:57:53 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-08 00:57:53 +0000 |
| commit | 0e3cbedc7367388d3de424f9c9c12121179cde6f (patch) | |
| tree | 39a0bf1b2e05737299a7558d60d708aeb13841ce /lua/mason-core/async/init.lua | |
| parent | fix(windows): download registry archive to file instead of piping data (#1189) (diff) | |
| download | mason-0e3cbedc7367388d3de424f9c9c12121179cde6f.tar mason-0e3cbedc7367388d3de424f9c9c12121179cde6f.tar.gz mason-0e3cbedc7367388d3de424f9c9c12121179cde6f.tar.bz2 mason-0e3cbedc7367388d3de424f9c9c12121179cde6f.tar.lz mason-0e3cbedc7367388d3de424f9c9c12121179cde6f.tar.xz mason-0e3cbedc7367388d3de424f9c9c12121179cde6f.tar.zst mason-0e3cbedc7367388d3de424f9c9c12121179cde6f.zip | |
refactor(async): increase wait time (#1192)
Still somewhat arbitrary, but high enough to not cause issues such as timing out CI jobs.
Diffstat (limited to 'lua/mason-core/async/init.lua')
| -rw-r--r-- | lua/mason-core/async/init.lua | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lua/mason-core/async/init.lua b/lua/mason-core/async/init.lua index 1b9b23a4..50c84a71 100644 --- a/lua/mason-core/async/init.lua +++ b/lua/mason-core/async/init.lua @@ -124,12 +124,9 @@ exports.run_blocking = function(suspend_fn, ...) result = b end, ...) - if - resolved - or vim.wait(60 * 60 * 1000, function() -- the wait time is completely arbitrary - return resolved == true - end, 50) - then + if resolved or vim.wait(0x7FFFFFFF, function() + return resolved == true + end, 50) then if not ok then error(result, 2) end |
