Skip to content

Issue with async blocking of method calls #8

Description

@ProjectMoon

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions