[css-houdini-drafts] [worklets] Post-resolution tasks for `addModule()` call

hoch has just created a new issue for https://github.com/w3c/css-houdini-drafts:

== [worklets] Post-resolution tasks for `addModule()` call ==
In [AudioWorklet](https://cdn.rawgit.com/hoch/web-audio-api/4f664508b26606611f892386f03b6199f54fb96b/index.html#AudioWorklet), we (AudioWG) are going to have this step when the `addModule()` call gets resolved:

> ... this internal storage is populated from __node name to processor definition map__ by extracting a node name and the matching value from `parameterDescriptors` when a promise from `addModule()` on the Worklet gets resolved.

The step should happen on the main thread, mainly to keep a "thread-specific" copy of necessary information for the construction of worklet-related objects. It is valid to have multiple `WorkletGlobalScope`s with AudioWorklet, so this post-resolution step is useful when synchronizing all instances of WorkletGlobalScopes and associated main thread proxy objects (e.g. BaseAudioContext). 

I believe having the spec text that describes this step would be actually clear and useful. Is this something planned? If not, what's the best path to introduce this?

Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/418 using your GitHub account

Received on Friday, 23 June 2017 19:33:12 UTC