Lua:checkSynchronize

From Cheat Engine
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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<> Lua API Reference

function checkSynchronize(timeout) : void

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

Main Pages

Core Lua documentation entry points

Lua
Script Engine