Are new async keywords and expectations in ES7 copied from C #?

Noticing that async and await are not found in Java, where are these new keywords in ES7 copied from C #? I'm curious about the origin: who suggested the keyword names and someone from the JS community uses concepts from the .NET platform?

+4
source share
1 answer

The concept of using promises (or futures, etc.) is becoming increasingly popular, but it is not new. For example, you can find it in MultiLisp.

asyncand awaitkeywords, however, were recently used in C # and now extend to many other languages.

promises, async await .NET 4.5 ( 2010 , 2012 ), F # (2007), Python (2015), Hack (HHVM) ECMAScript 7 (JavaScript), Scala ++.

, , JS #.

promises #

+7

Source: https://habr.com/ru/post/1619384/


All Articles