An open API service indexing awesome lists of open source software.

https://github.com/think2011/es7-async-await-demo

基于babel6的ES7特性,async await的demo。
https://github.com/think2011/es7-async-await-demo

Last synced: 12 months ago
JSON representation

基于babel6的ES7特性,async await的demo。

Awesome Lists containing this project

README

          

# ES7-Async-Await-Demo
基于babel6的ES7特性,async await的demo。

## 有2个例子

1. `sleep.js` 模拟类似PHP中sleep方法的例子
2. `app.js` 批量给电影文件下载海报的例子

![](https://raw.github.com/think2011/ES7-Async-Await-Demo/master/app-demo.gif)

## 启动

* npm i
* npm start

P.S: 修改 `bootstrap.js` 中的注释来切换2个例子