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

342
Vistas
Is Web API:S Fetch() parallell or async?

I'm having trouble finding the answer to this. When we call fetch(), is the browser opening a new thread or is the call just put in the microqueue?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The answer is sort of "both":

  • The network request itself is processed in parallel with anything else happening on your JavaScript thread, not on the JavaScript thread. (In all major browsers.)

  • When the network request is complete, a promise reaction (fulfillment or rejection) is queued to be picked up by the JavaScript thread when it's next checking the relevant queue. (I think what happens is that the browser queues a task that settles the promise, which in turn queues any relevant promise reactions in the microtask queue. The details don't really matter, though; fundamentally, once the network request is complete, a task/microtask is queued somewhere for any promise reactions that need to happen, and picked up by the JavaScript thread like other tasks/microtasks.)

about 4 years ago · Juan Pablo Isaza 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