aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/core/async/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/nvim-lsp-installer/core/async/init.lua')
-rw-r--r--lua/nvim-lsp-installer/core/async/init.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/nvim-lsp-installer/core/async/init.lua b/lua/nvim-lsp-installer/core/async/init.lua
index 45bf2398..85f4c83c 100644
--- a/lua/nvim-lsp-installer/core/async/init.lua
+++ b/lua/nvim-lsp-installer/core/async/init.lua
@@ -79,6 +79,10 @@ local function new_execution_context(suspend_fn, callback, ...)
end
end
+exports.run = function(suspend_fn, callback)
+ return new_execution_context(suspend_fn, callback)
+end
+
exports.scope = function(suspend_fn)
return function(...)
return new_execution_context(suspend_fn, function() end, ...)