-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Make it explicit that "this" is available in parallel #11110
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
Yikes! Do we want I usually encourage people to make this explicit by closing over what they actually need from |
I mean that's what I did, but @domenic suggested I do the opposite. I would personally also prefer that eventually we get more explicit about what kind of state can be shared. |
Ah, that surprises me. I don't think we should promote using |
I don't feel too strongly. My rationale is that But, your point that people should not generally access Web IDL objects in parallel is a good one. Similarly, your point about how bringing My main remaining complaint is that I find the pattern
to be a bit annoyingly-verbose compared to
but I guess the better solution to that is to work on whatwg/webidl#135 (and in particular the sub-thread around in parallel behavior. (Where I tend to agree more with @jyasskin these days than I do with my 2017 self. I guess my 2021 proposal at whatwg/webidl#135 (comment) is the best current idea.) So, I'm OK with saying that this must not be accessed in parallel. |
What is the issue with the HTML Standard?
Various other operations (such as method steps) can go in parallel at some point. In various places we rely on "this" being available (and thus kept alive). We should make this assumption explicit in the in parallel section.
The text was updated successfully, but these errors were encountered: