diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-04-10 13:23:14 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-04-10 13:23:14 -0300 |
commit | a93e0144479f1eb0ac19b8c31862f4cbc2fbe1c4 (patch) | |
tree | da550c2f101ae33b6a068936c5dc77064abf3951 /manual | |
parent | 8ba4523cccf59093543cec988b07957193d55692 (diff) | |
download | lua-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.of | 7 |
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 | ||
6312 | Returns true when the running coroutine can yield. | 6312 | Returns true when the coroutine @id{co} can yield. |
6313 | The default for @id{co} is the running coroutine. | ||
6313 | 6314 | ||
6314 | A running coroutine is yieldable if it is not the main thread and | 6315 | A coroutine is yieldable if it is not the main thread and |
6315 | it is not inside a non-yieldable @N{C function}. | 6316 | it is not inside a non-yieldable @N{C function}. |
6316 | 6317 | ||
6317 | } | 6318 | } |