summaryrefslogtreecommitdiff
path: root/xmake/core/base/coroutine.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2026-03-30 23:51:59 +0800
committerruki <[email protected]>2026-03-30 23:51:59 +0800
commit701d59c83a64bf5aa73f2bc386a0cdba087349c4 (patch)
tree85de317c9904b4aa9e818cbef5615ed2cfad28be /xmake/core/base/coroutine.lua
parente23dc968df5fa84e24e98a7fff903e40a12d6624 (diff)
update more comments
Diffstat (limited to 'xmake/core/base/coroutine.lua')
-rw-r--r--xmake/core/base/coroutine.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/xmake/core/base/coroutine.lua b/xmake/core/base/coroutine.lua
index 2ed91c354..2335f29d8 100644
--- a/xmake/core/base/coroutine.lua
+++ b/xmake/core/base/coroutine.lua
@@ -29,7 +29,12 @@ local string = require("base/string")
-- save original interfaces
coroutine._resume = coroutine._resume or coroutine.resume
--- resume coroutine
+-- resume coroutine with enhanced error reporting
+--
+-- @param co the coroutine to resume
+-- @param ... the resume arguments
+-- @return true and results on success, or false and error info
+--
function coroutine.resume(co, ...)
local ok, results = coroutine._resume(co, ...)
if not ok then