Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

186
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!