项目中不让使用promise,都是统一async,我需要promise.all发送多个请求。请求怎么写?
比如读取一堆文件:
(async () => { let files = [ /*....*/ ]; files = files.map(file => readFile(file)); files = await files; // do next })();
1.4m articles
1.4m replys
5 comments
57.0k users