aboutsummaryrefslogtreecommitdiff
path: root/manual/manual.of
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-06-13 14:08:38 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-06-13 14:08:38 -0300
commite657a48ea5698bbd9982d878eb65e6615ec94f7e (patch)
tree2a121476070495f31f9adb201aed7bdb2b48c75a /manual/manual.of
parentfd897027f19288ce2cb0249cb8c1818e2f3f1c4c (diff)
downloadlua-e657a48ea5698bbd9982d878eb65e6615ec94f7e.tar.gz
lua-e657a48ea5698bbd9982d878eb65e6615ec94f7e.tar.bz2
lua-e657a48ea5698bbd9982d878eb65e6615ec94f7e.zip
The main thread cannot be closed
No thread started with pcall (instead of resume) can be closed, because coroutine.close would not respect the expected number of results from the protected call.
Diffstat (limited to 'manual/manual.of')
-rw-r--r--manual/manual.of4
1 files changed, 2 insertions, 2 deletions
diff --git a/manual/manual.of b/manual/manual.of
index 7c504d97..baa33d88 100644
--- a/manual/manual.of
+++ b/manual/manual.of
@@ -3284,8 +3284,8 @@ If @id{L} is equal to @id{from},
3284it corresponds to a thread closing itself. 3284it corresponds to a thread closing itself.
3285In that case, 3285In that case,
3286the call does not return; 3286the call does not return;
3287instead, the resume or the protected call 3287instead, the resume that (re)started the thread returns.
3288that (re)started the thread returns. 3288The thread must be running inside a resume.
3289 3289
3290} 3290}
3291 3291