input-for-workers icon indicating copy to clipboard operation
input-for-workers copied to clipboard

Reasoning behind "context"

Open majido opened this issue 5 years ago • 0 comments

dictionary EventDelegationOptions {
  any context;
};

The proposed API proposed a context member that can be used when delegating an event target to a worker. It mentions that it is there to help send additional parameters for the target. We should add an example that shows how this is useful.

Also we should clarify that "context" needs to be structured cloneable otherwise we cannot send it to the worker/worklet.

majido avatar Sep 04 '19 17:09 majido