←back to thread

305 points kristoff_it | 1 comments | | HN request time: 0.212s | source
Show context
andrewstuart ◴[] No.44610897[source]
That’s word games.

If I launch 2 network requests from my async JavaScript and both are in flight then that’s concurrent.

Definition from Oxford Dictionary adjective 1. existing, happening, or done at the same time. "there are three concurrent art fairs around the city"

replies(3): >>44612735 #>>44613304 #>>44614255 #
1. messe ◴[] No.44614255[source]
> If I launch 2 network requests from my async JavaScript and both are in flight then that’s concurrent.

That's because JS conflates the two. The async keyword in JavaScript queues things for the event loop which is running in a different thread, and progress will be made on them even if they are never awaited. In Rust, for example, nothing will happen unless those Futures are awaited.