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

188
Vistas
javascript await and python await, are they same concept?

From a user point of view,

When we think of for loop..
We could say for loop in javascript or python are the same thing conceptually.

Can we say await in both languages are conceptually same?

I smell, this can be a bad question.. but albeit interesting question for me..

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

0

TL;DR No. They are NOT same.

The biggest difference is,

An async Javascript function will run if invoked, even if not awaited. await here is used to make sure the subsequent execution is done sequentially. ie., write code including an async function, just like for a synchronous code. Prior to async-await, JS code can get pretty complex since asynchronous functions will have be handled using Promises and Promise chaining can impact code readability pretty quickly.

So in a way, async-await in JS may be termed as syntactic sugar for Promise handling.

Incase of Python, when an awaitable object is invoked, a coroutine object is created. But this coroutine is not run unless it is awaited. Here the use of await is to run the coroutine.

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