Difference between revisions of "Core.asyncCall"

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

Revision as of 14:34, 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)

Parameters

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