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