1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-25 05:23:13 +03:00

Stop using Bluebird::mapSeries

This commit is contained in:
Michael Telatynski
2019-11-25 14:14:10 +00:00
parent a6f7936311
commit f8d83f8273
2 changed files with 9 additions and 3 deletions

View File

@@ -731,3 +731,9 @@ module.exports.defer = () => {
return {resolve, reject, promise};
};
module.exports.promiseMapSeries = async (promises, fn) => {
for (const o of await promises) {
await fn(await o);
}
};