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

Length of the queue #4

Open
fogfish opened this issue Sep 2, 2017 · 2 comments
Open

Length of the queue #4

fogfish opened this issue Sep 2, 2017 · 2 comments

Comments

@fogfish
Copy link
Owner

fogfish commented Sep 2, 2017

A function -spec esq:length(_) -> integer() is a nice feature. There are no rocket science to make it for in-memory queue. However, the file queue requires persistency of counter that would cause extra unnecessary disk I/O.

Alternative option `-spec esq:empty(_) -> true | false.'

@fogfish
Copy link
Owner Author

fogfish commented Sep 2, 2017

@silviucpp any thought ?

@silviucpp
Copy link

Your alternative is good enough :)

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

2 participants