M
Marina Levit [MVP]
Does anyone knows if this exists? Basically, a way to tell a method to
execute, but a certain amount of time after the current event chain is
finished - not immediately. With setTimeout, even if it says to execute in a
second, that is really a second after the entire call chain is finished. So
if the call chain happens to take 10 seconds to complete - the setTimeout
method will execute in 11 seconds.
Timers just execute at regular intervals, but no way to know if the UI
thread is still processing an event when trying to invoke a method on the UI
thread.
execute, but a certain amount of time after the current event chain is
finished - not immediately. With setTimeout, even if it says to execute in a
second, that is really a second after the entire call chain is finished. So
if the call chain happens to take 10 seconds to complete - the setTimeout
method will execute in 11 seconds.
Timers just execute at regular intervals, but no way to know if the UI
thread is still processing an event when trying to invoke a method on the UI
thread.