DEV Community

Emerson Brôga Dev
Emerson Brôga Dev

Posted on

1 1

Promise.all()

Destructuring por índices

Usando o Promise.all() você pode aguardar várias promises serem executadas.
O then() após o Promise.all() vai receber os resultados quando todas as promises forem resolvidas, e o catch() irá ser chamado caso alguma das promises lance um erro.

Não deixe de visitar o repositório do github com todas as dicas em emersonbrogadev/social-media-snippets.

➜ Participe da nossa lista de desenvolvedores
➜ Aprenda ES6
➜ Veja as dicas no Instagram
➜ Assista nosso canal no YouTube
➜ Curta nossa página no Facebook
➜ Não perca as atualizações no Twitter
➜ Veja os repositórios no Github

=)

SurveyJS custom survey software

Simplify data collection in your JS app with a fully integrated form management platform. Includes support for custom question types, skip logic, integrated CCS editor, PDF export, real-time analytics & more. Integrates with any backend system, giving you full control over your data and no user limits.

Learn more

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay