{"provider_url":"https://hatena.blog","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.turai.work%2Fentry%2F20190207%2F1549546233\" title=\"Ruby\u3067\u4e26\u5217\u51e6\u7406\u3059\u308b\u306a\u3089 parallel \u4e00\u629e - \u52d5\u304b\u3056\u308b\u3053\u3068\u30d0\u30b0\u306e\u5982\u3057\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","categories":["ruby"],"version":"1.0","blog_url":"https://blog.turai.work/","published":"2019-02-07 22:30:33","url":"https://blog.turai.work/entry/20190207/1549546233","type":"rich","image_url":null,"provider_name":"Hatena Blog","title":"Ruby\u3067\u4e26\u5217\u51e6\u7406\u3059\u308b\u306a\u3089 parallel \u4e00\u629e","blog_title":"\u52d5\u304b\u3056\u308b\u3053\u3068\u30d0\u30b0\u306e\u5982\u3057","description":"\u4f7f\u7528\u4f8b require 'parallel' require 'open-uri' array = Parallel.map(1..10, in_threads: 2) do |num| num ** 2 end p array \u3059\u3067\u306b\u5148\u4eba\u69d8\u304c\u89e3\u8aac\u3057\u3066\u304f\u3060\u3055\u3063\u3066\u308b\u306e\u3067\u8a73\u3057\u3044\u3053\u3068\u306f\u66f8\u304b\u306a\u3044 \u4f7f\u3044\u65b9\u306e\u89e3\u8aac \u3010Ruby\u3011Parallel\u3067\u4e26\u5217\u51e6\u7406 - \u3057\u3081\u9bd6\u65e5\u8a18 \u52d8\u6240 Ruby\u3067\u4e26\u5217\u51e6\u7406\u3092\u884c\u3046parallel gem\u306e\u4f7f\u3044\u65b9\u3068\u52d8\u6240 -- \u307a\u3051\u307f\u3055\u304a","author_name":"thr3a","author_url":"https://blog.hatena.ne.jp/thr3a/"}