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

Rewrite async bits using "await" #14

Open
simu opened this issue Nov 27, 2017 · 0 comments
Open

Rewrite async bits using "await" #14

simu opened this issue Nov 27, 2017 · 0 comments

Comments

@simu
Copy link
Owner

simu commented Nov 27, 2017

I just realized that javascript (at least webextensions, cf. https://github.com/mdn/webextensions-examples/blob/3fb6017d4387d86f29bc702afc2d630d1a121262/session-state/background.js#L20) has a "await" keyword to wait for an async operation to complete.

This might make some of the storage code easier to understand.

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

No branches or pull requests

1 participant