Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

78
Vistas
should I add .then() after the async function call even when i don't need anything back from that function?

Let's say I have two async functions.

const functionTwo = async () => {
    //do something
}

const functionOne = async () => {
    try { 
        //do something
        functionTwo();
        //do something else
    } catch (e) {
        handleError(e)
    }
}

I dont want functionOne() to wait for functionTwo() to finish its execution so I didn't put await infront of functionTwo(). I'm using WebStorm IDE and its showing a warning that I should either put await or add .then() to functionTwo() call. Is it the right thing to do to put .then(), even when i don't need to do anything in it?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda