-
Notifications
You must be signed in to change notification settings - Fork 72
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
Multiple Readers and Writers in File System Access API #861
Comments
Yeah, Firefox already supports writable file streams with the exclusive locking internally, so it's not exposed to content yet. Actually we even provide direct access to the file that way (without any temporary/swap file involved). |
I'm in favor (and originally suggested something like this after Adobe raised the multiple-readers case for things like multiple tabs loading a prefs file). For the non SyncAccessHandle case, adding an exclusive options sounds good. This might produce errors for existing applications to deal with where they didn't have to before. For OPFS, the only conflicting accesses would be from the same site's code, so likely that's ok. For non-OPFS, it could in theory require an app to deal with a new error. This is ok to me. |
Thank you for the signs of support! One thing I think we should align on it the behavior of the
where
Thoughts? Happy to move this to a spec issue to further discuss if needed! |
The default |
Marking as positive based on the feedback from @jesup. |
Only |
Should we expect to see this on the standards issue tracker? |
And some, like the sqlite3 project, really, really, really wishes that they had a fully-synchronous OPFS API. Currently, acquiring a SyncAccessHandle is async, making it exceedingly difficult and imperformant to integrate OPFS with 100% synchronous code like sqlite3's I/O abstraction. |
Request for Mozilla Position on an Emerging Web Specification
Other information
The text was updated successfully, but these errors were encountered: