Difference between revisions of "Yield"
Jump to navigation
Jump to search
(removed bogus params table) |
m (fixed typo) |
||
Line 3: | Line 3: | ||
In Mini Micro, for example, this waits until | In Mini Micro, for example, this waits until | ||
− | the next 60Hz frame. Exact meaning may | + | the next 60Hz frame. Exact meaning may vary, but generally |
− | if you're doing something in a tight loop, calling yield is | + | if you're doing something in a tight loop, calling <c>yield</c> is |
polite to the host app or other scripts. | polite to the host app or other scripts. | ||
[[Category:Intrinsic Functions]] | [[Category:Intrinsic Functions]] |
Revision as of 13:21, 29 March 2021
yield
pauses the execution of the script until the next "tick" of the host app.
In Mini Micro, for example, this waits until
the next 60Hz frame. Exact meaning may vary, but generally
if you're doing something in a tight loop, calling yield
is
polite to the host app or other scripts.