coroutine.resume
coroutine.resume Function | |
---|---|
Syntax coroutine.resume(
| |
Returns | boolean |
API | Base globals |
Source | Lua |
Resumes a coroutine.
|
|||
Resumes a coroutine with "test". | |||
Code | <nowiki>
local co = coroutine.create(function(x)
print(x)
end)
coroutine.resume(co, "test")
</nowiki>
|
||
Output | test
|
Functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Lua |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CC:Tweaked |
|
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.