Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

119
Views
Cómo esperar a que la función asíncrona finalice la ejecución y ejecute la siguiente línea que no sea la promesa

Estoy tratando de terminar la ejecución de la función asíncrona e intento pasar a la siguiente línea y solo puedo lograr esto usando el método de promesa.

¿Hay algún otro método que pueda usar?

 created() { this.data.forEach(el=>{ this.test().then(res=>{ }); }); //want to wait until finish execution and want to write code here. } async test() { const data = await this.$store.dispatch( "getData", { value: value } return data; }

about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!