News for hackers. Stuff that matters.
Re:Why choose async/await over threads? by recursive on Monday March 25, 2024 @01:37PM (#39819173)
I don't think so. Two threads updating the same variable would be observable in code. There's no way around it.
Re:Why choose async/await over threads? by MuffinFlavored on Monday March 25, 2024 @01:43PM (#39819250)
I'm referring to something like this: https://stackoverflow.com/questions/7018093/is-nodejs-really...

It's like a pedantic technical behind the scenes point I think, just trying to learn "what's true"

Re:Why choose async/await over threads? by recursive on Monday March 25, 2024 @05:45PM (#39821594)
Looks like the spec refers to the thing-that-has-the-thread as an "agent". https://tc39.es/ecma262/#sec-agents

I don't know the details about how any implementation of a javascript execution environment allows for the creation of new agents.