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

Count pause/resume operations #19

Open
hackergrrl opened this issue May 15, 2020 · 0 comments
Open

Count pause/resume operations #19

hackergrrl opened this issue May 15, 2020 · 0 comments

Comments

@hackergrrl
Copy link
Member

hackergrrl commented May 15, 2020

I could see it being useful for one piece of code to call pause on some kappa views, and expect it to stay paused until it finished. Currently, it's a binary on/off switch, so one piece of code could unpause when another piece of code is relying on the indexes to be paused in order to, for example, issue several queries without wanting the views to change underneath it while it does so.

This could be done by just having a pauseCount for each view kappa-core tracks, and only issuing ready once it reaches 0 again.

cc @Frando

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