Lua:checkSynchronize
Revision as of 04:54, 21 June 2026 by Leunsel (talk | contribs) (Created page with "Category:Lua {{CodeBox|'''function''' checkSynchronize(''timeout'') ''':''' void}} Executes queued synchronize calls. Call this from an infinite loop in the main thread...")
Executes queued synchronize calls.
Call this from an infinite loop in the main thread when using threading and synchronize calls, so pending synchronized calls can be processed.
Function Parameters
| Parameter | Type | Description |
|---|---|---|
| timeout | Integer (optional) | The optional timeout value used while checking for queued synchronize calls. |
Returns
void — This function does not return any value.
Examples
while true do checkSynchronize() -- Other loop logic here end
while true do checkSynchronize(100) -- Other loop logic here end