Difference between revisions of "Thread:fetchData"
From GiderosMobile
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
| − | + | '''Available since:''' 2018.10<br/> | |
| − | ''' | + | '''Class:''' [[Thread]]<br/> |
| − | ''' | ||
| − | === | + | === Description === |
| − | + | Returns any data sent by thread sendData call. | |
| − | + | <source lang="lua"> | |
| − | <source lang="lua">local success, ... = thread:fetchData()</source> | + | local success, ... = thread:fetchData() |
| + | </source> | ||
| − | === | + | === Return values === |
| − | + | '''success: ''' ''(boolean)'' if there is data to be retrieved<br/> | |
| − | + | '''...: ''' ''(misc)'' any number of arguments provided by sendData calls<br/> | |
| − | '''success: ''' ''(boolean)'' | ||
| − | '''...: ''' ''(misc)'' | ||
{{Thread}} | {{Thread}} | ||
Revision as of 04:41, 11 June 2023
Available since: 2018.10
Class: Thread
Description
Returns any data sent by thread sendData call.
local success, ... = thread:fetchData()
Return values
success: (boolean) if there is data to be retrieved
...: (misc) any number of arguments provided by sendData calls