public static checkpoint() as Boolean
Explicit cooperation point for the current thread. Waits while paused, unless stopping was requested. Never consumes the interruption flag. Call outside critical sections, then return or break when false so normal resource cleanup can run.
false if stopping was requested, true otherwise.
while Thread.checkpoint():
processNextBatch()