Head of Product at Temporal. Previously lead architect and low-level systems programmer for scale out SaaS offering. Game engine developer, ML engineering expert. DMs open on Twitter.
That’s not true. If I await a web request in some random function, it will still be asynchronous as long as the random function is invoked asynchronously.
I would say the moment you slap
await
in there, the code is no longer asynchronous. It's blocking as any other line.That’s not true. If I await a web request in some random function, it will still be asynchronous as long as the random function is invoked asynchronously.
Try doing two awaits in a row and check if they run concurrently. This is the definition of synchronous.