es7-async-fn

2019-09-08 admin

es7-async-fn是什么

什么是es7-async-fn,Transformer that converts async functions and await expressions into ECMAScript 6 generator functions and yield expressions

es7-async-fn使用教程帮助文档

es7-async-fn

NPM version Build status Test coverage Dependency Status License Downloads Gittip

Fork of es7-async-await for ecstacy usage.

Transformer that converts async functions and await expressions into ECMAScript 6 generator functions and yield expressions.

Note that this transform is only really useful if you know you’re targeting a platform that supports generator functions natively. Otherwise, you’re better off using Regenerator, since it has the ability to transform async functions into ES5 without creating immediately-invoked GeneratorFunctions.

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-74640.html

文章标题:es7-async-fn

回到顶部