Difference between revisions of "Thread:fetchData"

From GiderosMobile
(Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' 2018.10<br/> '''<translate>Class</translate>:''' Thread<br/> === <translat...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' 2018.10<br/>
'''<translate>Available since</translate>:''' 2018.10<br/>
+
'''Class:''' [[Thread]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Thread|Thread]]<br/>
 
  
=== <translate>Description</translate> ===
+
=== Description ===
<translate>Returns any data sent by thread sendData call.
+
Returns any data sent by thread sendData call.
</translate><br/>
+
<syntaxhighlight lang="lua">
<source lang="lua">local success, ... = thread:fetchData()</source>
+
local success, ... = thread:fetchData()
 +
</syntaxhighlight>
  
=== <translate>Parameters</translate> ===
+
=== Return values ===
''<translate>none</translate>''<br/>
+
'''success: ''' ''(boolean)'' if there is data to be retrieved<br/>
=== <translate>Return values</translate> ===
+
'''...: ''' ''(misc)'' any number of arguments provided by sendData calls<br/>
'''success: ''' ''(boolean)'' <translate>if there is data to be retrieved</translate><br/>
+
 
'''...: ''' ''(misc)'' <translate>any number of arguments provided by sendData calls</translate><br/>
+
{{Thread}}

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