Difference between revisions of "Core.asyncCall"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2016.06<br/> === Description === Launch function on separate thread as background task. Background threads are only executed when mai...")
 
Line 6: Line 6:
 
Background threads are only executed when main thread is not running
 
Background threads are only executed when main thread is not running
 
<source lang="lua">
 
<source lang="lua">
= Core.asyncCall(taskparameters,)
+
Core.asyncCall(task,parameters)
 
</source>
 
</source>
'''task:''' (function) function to run in background ''''''<br/>
+
'''task''': (function) function to run in background ''''''<br/>
'''parameters:''' (multiple) multiple parameters to pass to function '''optional'''<br/>
+
'''parameters''': (multiple) multiple parameters to pass to function '''optional'''<br/>

Revision as of 10:20, 23 August 2018

Available since: Gideros 2016.06

Description

Launch function on separate thread as background task.

Background threads are only executed when main thread is not running

 Core.asyncCall(task,parameters)

'task: (function) function to run in background '
parameters: (multiple) multiple parameters to pass to function optional