-
Notifications
You must be signed in to change notification settings - Fork 142
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
Only microtasks, but still postMessage()? #319
Comments
Worklets definitely aren't getting postMessage. Some sort of signaling back to the main thread is needed by some worklets, but we've yet to work out the details. (This was discussed at TPAC - AudioWorklet eventually needs this comm mechanism, but doesn't desperately need it right now; some people were worried about Process, tho, and wanted to shoehorn something in early.) |
So I'll close this for now, the webaudio folks have moved away from a postMessage api and all of the baggage that contains for a far more constrained |
/cc @hoch FYI |
ondata is an event or a callback? That would have to be a microtask somehow per the not super precise description of worklets event loop? |
I looked at https://webaudio.github.io/web-audio-api/ btw and |
(I also found WebAudio/web-audio-api#1193.) |
Filed WebAudio/web-audio-api#1194 regarding it being currently a EventHandler when it should just be a callback which is invoked by the UA. |
Thanks for pointing them out. Those were the last bit of loose ends in the AudioWorklet spec. I posted follow up questions on the issue. |
It seems some worklets want a postMessage() API, but how does that work without tasks? I couldn't find a definition anywhere.
The text was updated successfully, but these errors were encountered: