一道 js 题

有个推友发起了一个挑战:JS challenge

  • you have a list of 1000 items
  • you have an async function process(item)
  • you need to process all items
  • it needs to be done concurrently, but not more than 25 at a time
  • collect items with errors

what's the cleanest way to do this? libraries allowed

我试了下,用 7 行代码搞定了:

rxjs 用来处理复杂数据流很方便。tweet

rxjs·javascript
100 views
Comments
登录后评论
Sign In