Difference between revisions of "Thread:sendData"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Sends data for retrieval by main thread (only a valid call inside thread function).
 
Sends data for retrieval by main thread (only a valid call inside thread function).
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
Thread.sendData(...)
 
Thread.sendData(...)
</source>
+
</syntaxhighlight>
  
 
Adds values onto a stack which are retrieved by the next call to fetchData from the main thread.
 
Adds values onto a stack which are retrieved by the next call to fetchData from the main thread.

Latest revision as of 15: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