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-github-a93e0144479f1eb0ac19b8c31862f4cbc2fbe1c4.tar.gz |
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"}. } -@LibEntry{coroutine.isyieldable ()| +@LibEntry{coroutine.isyieldable ([co])| -Returns true when the running coroutine can yield. +Returns true when the coroutine @id{co} can yield. +The default for @id{co} is the running coroutine. -A running coroutine is yieldable if it is not the main thread and +A coroutine is yieldable if it is not the main thread and it is not inside a non-yieldable @N{C function}. } |