aboutsummaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-04-10 13:23:14 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-04-10 13:23:14 -0300
commita93e0144479f1eb0ac19b8c31862f4cbc2fbe1c4 (patch)
treeda550c2f101ae33b6a068936c5dc77064abf3951 /manual
parent8ba4523cccf59093543cec988b07957193d55692 (diff)
downloadlua-a93e0144479f1eb0ac19b8c31862f4cbc2fbe1c4.tar.gz
lua-a93e0144479f1eb0ac19b8c31862f4cbc2fbe1c4.tar.bz2
lua-a93e0144479f1eb0ac19b8c31862f4cbc2fbe1c4.zip
Added an optional parameter to 'coroutine.isyieldable'
Diffstat (limited to 'manual')
-rw-r--r--manual/manual.of7
1 files changed, 4 insertions, 3 deletions
diff --git a/manual/manual.of b/manual/manual.of
index 6da2e494..fea6922e 100644
--- a/manual/manual.of
+++ b/manual/manual.of
@@ -6307,11 +6307,12 @@ an object with type @T{"thread"}.
6307 6307
6308} 6308}
6309 6309
6310@LibEntry{coroutine.isyieldable ()| 6310@LibEntry{coroutine.isyieldable ([co])|
6311 6311
6312Returns true when the running coroutine can yield. 6312Returns true when the coroutine @id{co} can yield.
6313The default for @id{co} is the running coroutine.
6313 6314
6314A running coroutine is yieldable if it is not the main thread and 6315A coroutine is yieldable if it is not the main thread and
6315it is not inside a non-yieldable @N{C function}. 6316it is not inside a non-yieldable @N{C function}.
6316 6317
6317} 6318}