<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>wannabe-jellyfish</author_name>
  <author_url>https://blog.hatena.ne.jp/wannabe-jellyfish/</author_url>
  <blog_title>くらげになりたい。</blog_title>
  <blog_url>https://memory-lovers.blog/</blog_url>
  <categories>
    <anon>TypeScript</anon>
    <anon>javascript</anon>
  </categories>
  <description>並列実行できるPromise.all 便利だけど、リストが多いと、並列数がすごくなるので、 制限したいなと思ったときに、いろいろ調べたときの備忘録。 @supercharge/promise-poolを使うとよさそう(´ω｀) インストール $ npm i @supercharge/promise-pool 使い方 公式のサンプルより。使い方はこんな感じ。 並列数は2の例。 import { PromisePool } from &quot;@supercharge/promise-pool&quot; const users = [ { name: 'Marcus' }, { name: 'Norman' },…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemory-lovers.blog%2Fentry%2F2022%2F05%2F04%2F150000&quot; title=&quot;Promise.allで並列数を制限する(supercharge/promise-pool) - くらげになりたい。&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-05-04 15:00:00</published>
  <title>Promise.allで並列数を制限する(supercharge/promise-pool)</title>
  <type>rich</type>
  <url>https://memory-lovers.blog/entry/2022/05/04/150000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
