Answer the question
In order to leave comments, you need to log in
How to execute Promise.all from object array methods?
There is an array of objects of type
{
...
action: async function() {...}
}
Promise.all (objs.action)
so that they all start executing at the same time let does = objs.map( e => e.action.bind(e));
let results = await Promise.all(does)
Answer the question
In order to leave comments, you need to log in
RewriteEngine On
RewriteCond %{REQUEST_URI} /tg/(.+)$ [OR,NC]
RewriteCond %{REQUEST_FILENAME} !/tg\.php$
RewriteRule ^(.*)$ /tg.php [L]
RewriteCond %{REQUEST_URI} /vk/(.+)$ [OR,NC]
RewriteCond %{REQUEST_FILENAME} !/vk\.php$
RewriteRule ^(.*)$ /vk.php [L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question