Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Support interrupting resume of a pause (?) #1

Open
slurmulon opened this issue Sep 10, 2017 · 0 comments
Open

[Bug] Support interrupting resume of a pause (?) #1

slurmulon opened this issue Sep 10, 2017 · 0 comments
Assignees

Comments

@slurmulon
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant