We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6229225 commit f1939e8Copy full SHA for f1939e8
lua/plenary/async/async.lua
@@ -7,7 +7,7 @@ local f = require "plenary.functional"
7
local M = {}
8
9
local function is_callable(fn)
10
- return type(fn) == "function" or type(getmetatable(fn)["__call"]) == "function"
+ return type(fn) == "function" or (type(fn) == "table" and type(getmetatable(fn)["__call"]) == "function")
11
end
12
13
---because we can't store varargs
0 commit comments