top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is Async & Await in Javascript?

0 votes
469 views
What is Async & Await in Javascript?
posted Feb 22, 2018 by Manish Tiwari

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Async/await is a new way to write asynchronous code. Async/await is actually built on top of promises. It cannot be used with plain callbacks or node callbacks.
Async/await is, like promises, non blocking. Async/await makes asynchronous code look and behave a little more like synchronous code.

answer Feb 26, 2018 by Sidharth Malhotra
Similar Questions
+1 vote

I enabled the deprecation warning in Python 3.5.1 and Python 3.6 dev, but I did not get any warning when assigning to async or await:

$ python -Wd -c "import sys; print(sys.version); async = 33"
3.5.1 (default, Jan 21 2016, 19:59:28)
[GCC 4.8.4]

Is it normal?

...