1. 首页
  2. 数据库
  3. 其它
  4. epic async 源码

epic async 源码

上传者: 2021-04-20 19:00:29上传 ZIP文件 35.35KB 热度 21次
史诗般的异步 轻型异步foreach东西,打字时间是凌晨1点。 import { forEach } from 'epic-async' ; // each task takes a different amount of time to complete const array = [ 1000 , 5000 , 100 , 2000 ] ; async function go ( ) { // however, it will not continue until the previous iteration completes // you can also use .then instead of await if you want but i don't see why you'd do that // or you could do neither
下载地址
用户评论