diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-06-13 14:08:38 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-06-13 14:08:38 -0300 |
commit | e657a48ea5698bbd9982d878eb65e6615ec94f7e (patch) | |
tree | 2a121476070495f31f9adb201aed7bdb2b48c75a /manual/manual.of | |
parent | fd897027f19288ce2cb0249cb8c1818e2f3f1c4c (diff) | |
download | lua-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.of | 4 |
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}, | |||
3284 | it corresponds to a thread closing itself. | 3284 | it corresponds to a thread closing itself. |
3285 | In that case, | 3285 | In that case, |
3286 | the call does not return; | 3286 | the call does not return; |
3287 | instead, the resume or the protected call | 3287 | instead, the resume that (re)started the thread returns. |
3288 | that (re)started the thread returns. | 3288 | The thread must be running inside a resume. |
3289 | 3289 | ||
3290 | } | 3290 | } |
3291 | 3291 | ||