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

235
Vistas
Why async recursion shows call stack building up in the browser?

While I totally agree with the accepted answer on this SO post, I need to know if asynchronous recursion really creates a brand new call stack, why does it show the call stack building up in the browser in the following screenshot? To be fair, the call stack seems to stop growing after 32 recursions. Here's the sample code.

enter image description here

about 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

Showing async call stacks is a feature of chrome dev tools. You can switch it off with shift + ctrl + p and selecting do not capture async stack traces.

In the console output in your picture the bold text setTimeout(async) is where a new stack begins.

about 4 years ago · Santiago Trujillo Denunciar

0

Async does create new stacks.

Your browser's dev tools glue those async frames together for you as a debugging convenience.

You can turn it off in the dev tools' preferences; see eg. https://developer.chrome.com/blog/new-in-devtools-60/#async-stacks

about 4 years ago · Santiago Trujillo Denunciar
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