reed icon indicating copy to clipboard operation
reed copied to clipboard

Issue with async blocking of method calls

Open ProjectMoon opened this issue 14 years ago • 0 comments

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.

ProjectMoon avatar Aug 22 '11 02:08 ProjectMoon