From 701d59c83a64bf5aa73f2bc386a0cdba087349c4 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 30 Mar 2026 23:51:59 +0800 Subject: update more comments --- xmake/core/base/coroutine.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'xmake/core/base/coroutine.lua') 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 -- cgit v1.3.1