Created downloadURLs population method in scraper.
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
class Utils {
|
||||
static async mapSeries(iterable, action) {
|
||||
const resolved = [];
|
||||
|
||||
for (const x of iterable) {
|
||||
await action(x);
|
||||
resolved.push(await action(x));
|
||||
}
|
||||
return Promise.resolve();
|
||||
return Promise.resolve(resolved);
|
||||
}
|
||||
|
||||
static wait(duration) {
|
||||
|
Reference in New Issue
Block a user