diff --git a/lua/plenary/async/util.lua b/lua/plenary/async/util.lua index c689ba337..b80f3fd10 100644 --- a/lua/plenary/async/util.lua +++ b/lua/plenary/async/util.lua @@ -53,6 +53,10 @@ end M.join = function(async_fns) local len = #async_fns local results = {} + if len == 0 then + return results + end + local done = 0 local tx, rx = channel.oneshot()