-
Notifications
You must be signed in to change notification settings - Fork 23
Possibility of sync version of createSyncAccessHandle()
#100
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
Comments
This was discussed quite a bit on #7 (the issue to make all the methods on the SyncAccessHandle sync). We came to the following conclusion (from #7 (comment)):
|
Right. I have created this new Issue because…
…we may have found this “anyone”. I hope for them to chime in on the Issue. |
Hello 👋 I am the Team Lead at StackBlitz for WebContainer, a Node.js runtime for the browser. For our runtime we would highly benefit from Does that make sense? |
Hi @d3lm, thanks for contributing your use case! Just to make sure I understand correctly - you still would need to call the async On that earlier spec issue it was concluded that making The most convincing use case (courtesy of rhashimoto/wa-sqlite#67) I've seen so far for |
@a-sully Yes, that is absolutely right. I'd still need to call |
Yup, this is what I had suspected :) JSPI is currently in Dev Trial and is going into Origin Trial in M123 in Chrome. I would recommend checking it out! |
The current
createSyncAccessHandle()
method is asynchronous. Since we don’t universally have JSPI on all platforms/browsers yet, obtaining aFileSystemSyncAccessHandle
can be unergonomic from a Wasm context. We hear developer demand for a synchronous version ofcreateSyncAccessHandle()
(obviously tied to Worker contexts). Is this feasible?The text was updated successfully, but these errors were encountered: