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

Feedback #1

Open
Stradivario opened this issue Jun 11, 2020 · 1 comment
Open

Feedback #1

Stradivario opened this issue Jun 11, 2020 · 1 comment

Comments

@Stradivario
Copy link

Hello there! I am just passing here to ask some questions

  1. Why do you think that wrapping LocalStorage with Promise will give you a better performance ?
  2. Do you know that wrapping Sync function with Async doesn't really give you asyncronious behaviour ?
  3. Have you consider using this library ? https://github.com/localForage/localForage i think you will love it since it is wrapper for LocalStorage, IndexedDb or WebSQL.

Nothing in personal i just check your code and i was curious if you think about these scenarios!

Best Regards,
Kristiyan Tachev

@vzakharov
Copy link

Yeah, looking at the code, it just defers the execution until the call stack is empty, but it will still block execution afterwards.

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

2 participants