3 ms·
It's C# that created and popularized async/await, not JS (and it having an already open source implementation at the time, it was available to everyone for free
by tasogare 5y ago
It's C# that created and popularized async/await, not JS (and it having an already open source implementation at the time, it was available to everyone for free).
- aaomidi 5y agoBased on usage numbers, I'm gonna say it was a mix of both. But JS brought it to the very mainstream.
- hajile 5y agoJS introduced promises to the world around 2005 (they were in an unused experimental language a few years before). async/await is mostly specialized syntax over generators. I'd note that ES4 had generators in the early 2000s F# introduced async/await in 2007. C# was mostly copying F# (like it's done for almost every new feature in the past decade or so). Haskell libraries added support around the same time as C# (likely inspired by F#) JS had the feature for several years via transpilers before it was finally added officially.