Home
Sign Up
Sign In
V2EX
›
问与答
async/await 怎么实现类似于 map_reduce 的功能
linxiaoziruo
·
Oct 18, 2018
· 1372 views
This topic created in 2791 days ago, the information mentioned may be changed or developed.
简单描述:就是 50 个任务在同一时刻一起发出去执行,50 个任务是各自独立互不干扰的,但是需要 50 个任务都执行完成,获得这 50 个任务的运行结果,再执行下个流程。
任务
执行
await
map_reduce
3 replies
1
samleong019
Oct 18, 2018
1
await Promise.all([....]) 了解一下?
2
SoloCompany
Oct 18, 2018
https://github.com/lwr/learning-async/blob/master/js/step-by-step/6-async-wait-version.js
3
SoloCompany
Oct 18, 2018
以及
https://github.com/lwr/learning-async/blob/master/src/main/kotlin/com/github/lwr/learningasync/coroutine/profile-image-demo.kt
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
1689 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 90ms ·
UTC 16:30
·
PVG 00:30
·
LAX 09:30
·
JFK 12:30
♥ Do have faith in what you're doing.
❯