const pool = pooledMap(20, feeds, (url) => {
return getWithXidel(url, '//item/link');
});
const pool2 = pooledMap(20, feedEntries, (url) => {
return getWithXidel(url, "//entry/link[@rel='alternate']/@href");
});
for await (const data of pool) {
console.log('data: ', data);
console.log('found links: ', data?.links?.length);
for (const link of data?.links) {
const url = link.trim();
results.push(url);
}
}
Is it possible to combine these two pools into one? I tried Array.concat but it breaks it. says its not iterable.