pumpTimers
Runs the timers a script set with app.setInterval or app.setTimeOut and that are due at nowMillis. Returns how long to wait before the next one, or null when none is waiting.
A viewer calls this once per frame. Nothing runs on its own: a document cannot take the thread from the host.