Streaming counterpart of linkFetch: yields one page at a time.
for await (const { items } of linkStream({ url: 'https://api.github.com/repos/x/y/issues', fetcher: ({ url }, { signal }) => fetch(url, { signal }), getItems: (response) => response.json(),})) { await handle(items);} Copy
for await (const { items } of linkStream({ url: 'https://api.github.com/repos/x/y/issues', fetcher: ({ url }, { signal }) => fetch(url, { signal }), getItems: (response) => response.json(),})) { await handle(items);}
Streaming counterpart of linkFetch: yields one page at a time.