Difference between revisions of "Core.yield"
From GiderosMobile
Line 2: | Line 2: | ||
'''Available since:''' Gideros 2016.06<br/> | '''Available since:''' Gideros 2016.06<br/> | ||
=== Description === | === Description === | ||
− | Yield function running as background task. | + | <translate>Yield function running as background task. |
Core.yield([number of seconds to wait]) | Core.yield([number of seconds to wait]) | ||
Core.yield(true) -- yield for a single frame and disable auto yield | Core.yield(true) -- yield for a single frame and disable auto yield | ||
− | Core.yield(false) -- don't yield now, but reenable autoyield | + | Core.yield(false) -- don't yield now, but reenable autoyield</translate> |
<source lang="lua"> | <source lang="lua"> | ||
Core.yield(state) | Core.yield(state) | ||
</source> | </source> | ||
=== Parameters === | === Parameters === | ||
− | '''state''': (number or boolean) number of seconds to yield or boolean to enable/disable auto yield <br/> | + | '''state''': (number or boolean) <translate>number of seconds to yield or boolean to enable/disable auto yield</translate> <br/> |
Revision as of 13:33, 23 August 2018
Available since: Gideros 2016.06
Description
Yield function running as background task.
Core.yield([number of seconds to wait]) Core.yield(true) -- yield for a single frame and disable auto yield
Core.yield(false) -- don't yield now, but reenable autoyield
Core.yield(state)
Parameters
state: (number or boolean) number of seconds to yield or boolean to enable/disable auto yield