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

Safer interval handling #31

Merged
merged 2 commits into from
Jan 3, 2017
Merged

Safer interval handling #31

merged 2 commits into from
Jan 3, 2017

Conversation

jkrems
Copy link
Contributor

@jkrems jkrems commented Jan 3, 2017

Previously if load() took longer than interval, tasks started to pile up. This moves to the more reliable "only start counting once the last pass finished".

Copy link
Member

@dbushong dbushong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐑 it


runLoad()

dispose
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you made this as clear as possible - it's still sort of horrifying that there's no simpler idiomatic way to do this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it's kinda weird. On the other side it's supposedly not what you'd normally have to fall back on (e.g. using Observable.create shouldn't be necessary).

@jkrems jkrems merged commit 02a268e into master Jan 3, 2017
@jkrems jkrems deleted the jk-better-interval branch January 3, 2017 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants