-
Notifications
You must be signed in to change notification settings - Fork 110
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
Implement Cancellable or interruptible setTimeout in javy #650
Comments
Please could you guys help ? |
According to the Regarding the snippet above, it's also worth noting that there's still work to be done when it comes to Wasm atomics/threads. |
You may want to consider using a different implementation than |
@jeffcharles I was considering exposing a async function from host to guest ... but again wrap_callback takes a synchronous closure as argument , so I won't be able to call that async function asynchronously from guest wasm in setTimeout polyfill method . |
You could take a look at how QuickJS implemented We've also switched off of |
How can I implement Implement Cancellable or interruptible timeout in javy ?
I am right now polyfilling setTimeout like below -
But it is not cancellable it will only be cleared after timeout .
The text was updated successfully, but these errors were encountered: