aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/coxpcall.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2025-01-03 10:46:20 -0800
committerGitHub <noreply@github.com>2025-01-03 10:46:20 -0800
commita09c7a5d57ba2aca58fbc00e0b04a1437555a3c0 (patch)
tree7d068e82e41e44e3325fef63a6a7342234dc900a /runtime/lua/coxpcall.lua
parentb52531a9cbbd1843490333452cd124e8be070690 (diff)
parent700a25e6218e016b5adb0ddee740be4618d717a2 (diff)
downloadrneovim-a09c7a5d57ba2aca58fbc00e0b04a1437555a3c0.tar.gz
rneovim-a09c7a5d57ba2aca58fbc00e0b04a1437555a3c0.tar.bz2
rneovim-a09c7a5d57ba2aca58fbc00e0b04a1437555a3c0.zip
Merge #30384 test: spawn_wait()
Diffstat (limited to 'runtime/lua/coxpcall.lua')
-rw-r--r--runtime/lua/coxpcall.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/lua/coxpcall.lua b/runtime/lua/coxpcall.lua
index 6b179f1ef0..75e7a43567 100644
--- a/runtime/lua/coxpcall.lua
+++ b/runtime/lua/coxpcall.lua
@@ -1,6 +1,10 @@
-------------------------------------------------------------------------------
+-- (Not needed for LuaJIT or Lua 5.2+)
+--
-- Coroutine safe xpcall and pcall versions
--
+-- https://keplerproject.github.io/coxpcall/
+--
-- Encapsulates the protected calls with a coroutine based loop, so errors can
-- be dealed without the usual Lua 5.x pcall/xpcall issues with coroutines
-- yielding inside the call to pcall or xpcall.