Difference between revisions of "Core.asyncCall"

From GiderosMobile
(----)
Line 1: Line 1:
__NOTOC__
+
'''Available since:''' Gideros 2016.06<br/>
<languages />
+
'''Class:''' [[Core]]<br/>
'''<translate>Available since</translate>:''' Gideros 2016.06<br/>
+
 
'''<translate>Class</translate>:''' [[Special:MyLanguage/Core|Core]]<br/>
+
=== Description ===
=== <translate>Description</translate> ===
+
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>
=== <translate>Parameters</translate> ===
+
 
'''task''': (function) <translate>function to run in background</translate> <br/>
+
=== Parameters ===
'''parameters''': (multiple) <translate>multiple parameters to pass to function</translate> '''optional'''<br/>
+
'''task''': (function) function to run in background <br/>
 +
'''parameters''': (multiple) multiple parameters to pass to function '''optional'''<br/>
 +
 
 +
----
 +
{{Special:PrefixIndex/Core}}
 +
<br/>

Revision as of 16:49, 2 December 2019

Available since: Gideros 2016.06
Class: Core

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