Difference between revisions of "Thread:sendData"
From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>") |
|||
| (4 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
| − | + | '''Available since:''' 2018.10<br/> | |
| − | ''' | + | '''Class:''' [[Thread]]<br/> |
| − | ''' | ||
| − | === | + | === Description === |
| − | + | Sends data for retrieval by main thread (only a valid call inside thread function). | |
| − | + | <syntaxhighlight lang="lua"> | |
| − | + | Thread.sendData(...) | |
| − | < | + | </syntaxhighlight> |
| − | === | + | Adds values onto a stack which are retrieved by the next call to fetchData from the main thread. |
| − | '''...: ''' ''(misc)'' | + | |
| − | + | === Parameters === | |
| − | + | '''...: ''' ''(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