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

220
Vistas
Fulfilled Promise value returns <pending>

I have a function which returns Promise<Promise<void>[]>. In the functions then handler I got the right Promise which I want to be returned.

promises = this.copyFunc(moment(time).format(), target_date).then((promise) => {
    console.log(promise); // <<-- This shows fulfilled value and is what I want 
    return promise;
});

But the returned promises is a Promise pending. Why is promises still pending and how to get the fulfilled value?

This should be obvious and I've tried everything but haven't found a solution yet.

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