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

Explore queuing for storage APIs #9

Open
sholladay opened this issue Nov 1, 2016 · 0 comments
Open

Explore queuing for storage APIs #9

sholladay opened this issue Nov 1, 2016 · 0 comments

Comments

@sholladay
Copy link
Member

Currently, calling storage.set() multiple times without awaiting the promise it returns triggers a race condition.

While this is the standard state of affairs for promises, downstream users may not feel like implementing their own queuing logic for responding to input from the end-user. It would be nice if we could make this safer.

The internal machinery for storage.set() could implement its own queue.

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