Difference between revisions of "Core.asyncCall"

From GiderosMobile
m
Line 3: Line 3:
  
 
=== Description ===
 
=== Description ===
Launch function on separate thread as background task.
+
Launches a function on a separate thread as a background task.
 
 
Background threads are only executed when main thread is not running.
 
 
 
 
<source lang="lua">
 
<source lang="lua">
 
Core.asyncCall(task,parameters)
 
Core.asyncCall(task,parameters)
 
</source>
 
</source>
 +
 +
Background threads are only executed when the main thread is not running.
  
 
=== Parameters ===
 
=== Parameters ===
'''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/>
  
 
{{Core}}
 
{{Core}}

Revision as of 23:56, 15 March 2021

Available since: Gideros 2016.06
Class: Core

Description

Launches a function on a separate thread as a background task.

Core.asyncCall(task,parameters)

Background threads are only executed when the main thread is not running.

Parameters

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