Difference between revisions of "Thread:resume"
From GiderosMobile
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
| − | + | '''Available since:''' 2018.10<br/> | |
| − | ''' | + | '''Class:''' [[Thread]]<br/> |
| − | ''' | ||
| − | === | + | === Description === |
| − | + | Resumes a thread that has been yielded (only a valid call outside a thread). | |
| − | + | <source lang="lua"> | |
| − | + | ok, ... = thread:resume(...) | |
| − | + | </source> | |
| − | <source lang="lua"> | ||
| − | === | + | It returns arguments passed by the yield call and arguments supplied to resume are returned by the yield call to the thread. |
| − | '''...: ''' ''(misc)'' | + | |
| − | === | + | === Parameters === |
| − | '''ok: ''' ''(boolean)'' | + | '''...: ''' ''(misc)'' arguments that will be returned by yield call that we resumed<br/> |
| − | '''...: ''' ''(misc)'' | + | |
| + | === Return values === | ||
| + | '''ok: ''' ''(boolean)'' success<br/> | ||
| + | '''...: ''' ''(misc)'' arguments provided by yield call<br/> | ||
{{Thread}} | {{Thread}} | ||
Revision as of 04:48, 11 June 2023
Available since: 2018.10
Class: Thread
Description
Resumes a thread that has been yielded (only a valid call outside a thread).
ok, ... = thread:resume(...)
It returns arguments passed by the yield call and arguments supplied to resume are returned by the yield call to the thread.
Parameters
...: (misc) arguments that will be returned by yield call that we resumed
Return values
ok: (boolean) success
...: (misc) arguments provided by yield call