Skip to content

Commit d288d00

Browse files
committed
feat(plenary): move vararg inside async module
1 parent 5da1911 commit d288d00

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

lua/neoplen/async/async.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ local function callback_or_next(step, thread, callback, ...)
4141
local nargs = third(...)
4242

4343
assert(is_callable(returned_function), "type error :: expected func")
44-
returned_function(require("neoplen.vararg").rotate(nargs, step, select(4, ...)))
44+
returned_function(require("neoplen.async.vararg").rotate(nargs, step, select(4, ...)))
4545
end
4646
end
4747

lua/neoplen/async/util.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function M.apcall(async_fn, ...)
120120
local nargs = a.get_leaf_function_argc(async_fn)
121121
if nargs then
122122
local tx, rx = channel.oneshot()
123-
local stat, ret = pcall(async_fn, require("neoplen.vararg").rotate(nargs, tx, ...))
123+
local stat, ret = pcall(async_fn, require("neoplen.async.vararg").rotate(nargs, tx, ...))
124124
if not stat then
125125
return stat, ret
126126
else

0 commit comments

Comments
 (0)