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

Expose an API to manually pause polling #37

Open
kevinyuliawan opened this issue Mar 21, 2017 · 0 comments
Open

Expose an API to manually pause polling #37

kevinyuliawan opened this issue Mar 21, 2017 · 0 comments

Comments

@kevinyuliawan
Copy link

kevinyuliawan commented Mar 21, 2017

For instance, I'm using 'ember-pollboy' to poll every 5 seconds for songs in my library, and I use those songs in a 'multi-select' component. But when I have the multi-select dropdown open, the polling service still runs and thus causes my multi-select component to go into a loading state momentarily when the polling happens.

Perhaps there should be an API to call something like this.get('songsPoller').pause() and .resume(). That way I can pause polling when the dropdown is open, and resume it once it's closed.

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

No branches or pull requests

1 participant