How to Process Items in an Array in Parallel using Ruby (and open-uri)

前端 未结 5 1644
灰色年华
灰色年华 2021-02-20 12:41

I am wondering how i can go about opening multiple concurrent connections using open-uri? i THINK I need to use threading or fibers some how but i\'m not sure.

Exampl

5条回答
  •  情话喂你
    2021-02-20 13:32

    There's also a gem called Parallel which is similar to Peach, but is actively updated.

提交回复
热议问题