You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you pause an interval and then resume it, that resumption (setTimeout) could take a decent amount of time to complete. If the interval was say 5 seconds, and you paused halfway through, you have 2.5 seconds until the next step runs (i.e. resumes)
The problem here is that somebody might pause again WHILE you're already resuming from another pause, and the setTimeout currently being used right now cannot be interrupted.
resume essentially puts the user into a temporary limbo state where the interval can't be paused.
This could easily get pretty messy and add a bit more complexity, so this requires more thought.
The text was updated successfully, but these errors were encountered:
If you pause an interval and then resume it, that resumption (
setTimeout
) could take a decent amount of time to complete. If the interval was say 5 seconds, and you paused halfway through, you have 2.5 seconds until the next step runs (i.e. resumes)The problem here is that somebody might pause again WHILE you're already resuming from another pause, and the
setTimeout
currently being used right now cannot be interrupted.resume
essentially puts the user into a temporary limbo state where the interval can't be paused.This could easily get pretty messy and add a bit more complexity, so this requires more thought.
The text was updated successfully, but these errors were encountered: