Skip to content

Fix race condition in connection and store creation #1

Description

@creationix

Since creating a store and connection uses constructors, it doesn't allow for easy async callbacks for when it's ready to use. There is the connect event on the connection, but I think we can do better.

This ticket is to remind me to fix this race condition and use proper async callbacks so we don't need hacks like the timeout in "test/common.js"

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