Difference between revisions of "Thread:fetchData"
From GiderosMobile
| m (Text replacement - "</source>" to "</syntaxhighlight>") | |||
| (One intermediate revision by the same user not shown) | |||
| Line 5: | Line 5: | ||
| === Description === | === Description === | ||
| Returns any data sent by thread sendData call. | Returns any data sent by thread sendData call. | ||
| − | < | + | <syntaxhighlight lang="lua"> | 
| local success, ... = thread:fetchData() | local success, ... = thread:fetchData() | ||
| − | </ | + | </syntaxhighlight> | 
| === Return values === | === Return values === | ||
Latest revision as of 14:33, 13 July 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
