Skip to content

Questions about agent's Suspend #1443

Open
@annevk

Description

@annevk

I was looking at https://tc39.github.io/ecma262/#sec-suspend and agents in general and had some questions. (Interchanging signifiers and agents seems to happen elsewhere too.)

  1. It's unclear what the calling agent is.
  2. "Assert: W is on the list of waiters in WL." does not make sense since WL contains a list of agents, whereas W is merely a signifier for an agent.
  3. "suspend W", "W can notify", "If W was notified"; again, W is a signifier, not an agent.
  4. "If W was notified explicitly by another agent calling NotifyWaiter(WL, W)" isn't this typically handled via state?

cc @lars-t-hansen

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions