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

Issue with async blocking of method calls #8

Open
ProjectMoon opened this issue Aug 22, 2011 · 0 comments
Open

Issue with async blocking of method calls #8

ProjectMoon opened this issue Aug 22, 2011 · 0 comments

Comments

@ProjectMoon
Copy link
Owner

The refresh method was added to clean up the index BEFORE reed gets up and running. However, since the call to list blocks until the ready event, a list function queued before reed is started will list a dirty index before refresh finishes running. This also happens if all reed code is inside the ready event callback, because that event is fired before refresh finishes, apparently.

The easiest idea would be to have refresh utilize a callback. Will have to remove the async call blocking on the list method.

It may be a better idea to remove the async call blocking all together and just throw an error if a method is called before reed is opened.

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