You've already forked matrix-js-sdk
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:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user