-
Notifications
You must be signed in to change notification settings - Fork 27
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
Synchronous hasStorageAccess? #146
Comments
I like making this sync. |
I think I'm supportive of making it sync. My gut was to argue against it, since the environment's So, I'm not seeing a reason not to support sync hSA. |
For a moment I thought this would lead to badness across processes, but Still, I'm not sure we can change this API fundamentally. Developers presumably already rely on it. If they want something synchronous they can use a variable instead... Options we do have:
|
I think sync hSA is off the table given the direction where going in #171 |
Given the changes in #138 and #141 it seems like we can access a static flag on the window/environment to determine storage access. If I'm not mistaken this would enable a sync hasStorageAccess call without the promise. If this is useful for developers we could consider adding a new attribute and deprecating regular Promise-based hSA?
The text was updated successfully, but these errors were encountered: