Difference between revisions of "Thread:sendData"

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>")
 
(5 intermediate revisions by 3 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>Sends data for retrieval by main thread (only a valid call inside thread function). Adds values onto a stack which are retrieved by
+
Sends data for retrieval by main thread (only a valid call inside thread function).
the next call to fetchData from the main thread.
+
<syntaxhighlight lang="lua">
</translate><br/>
+
Thread.sendData(...)
<source lang="lua">thread:sendData()</source>
+
</syntaxhighlight>
  
=== <translate>Parameters</translate> ===
+
Adds values onto a stack which are retrieved by the next call to fetchData from the main thread.
''<translate>none</translate>''<br/>
+
 
=== <translate>Return values</translate> ===
+
=== Parameters ===
''<translate>none</translate>''<br/>
+
'''...: ''' ''(misc)'' variables to add to send stack<br/>
 +
 
 +
{{Thread}}

Latest revision as of 14:33, 13 July 2023

Available since: 2018.10
Class: Thread

Description

Sends data for retrieval by main thread (only a valid call inside thread function).

Thread.sendData(...)

Adds values onto a stack which are retrieved by the next call to fetchData from the main thread.

Parameters

...: (misc) variables to add to send stack