Difference between revisions of "Core.asyncCall"
From GiderosMobile
(----) |
|||
| Line 1: | Line 1: | ||
| − | + | '''Available since:''' Gideros 2016.06<br/> | |
| − | + | '''Class:''' [[Core]]<br/> | |
| − | ''' | + | |
| − | ''' | + | === Description === |
| − | === | + | Launch function on separate thread as background task. |
| − | + | ||
| + | Background threads are only executed when main thread is not running. | ||
| − | |||
<source lang="lua"> | <source lang="lua"> | ||
| − | + | Core.asyncCall(task,parameters) | |
</source> | </source> | ||
| − | === | + | |
| − | '''task''': (function) | + | === Parameters === |
| − | '''parameters''': (multiple) | + | '''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
- Core
- Core.asyncCall
- Core.asyncThread
- Core.class
- Core.enableAllocationTracking
- Core.fileLoad
- Core.fileSave
- Core.findReferences
- Core.frameStatistics
- Core.getScriptPath
- Core.profilerReport
- Core.profilerReset
- Core.profilerStart
- Core.profilerStop
- Core.random
- Core.randomSeed
- Core.setAutoYield
- Core.signal
- Core.stopping
- Core.yield
- Core.yieldable
- Core.yieldlock