What Is Asynchronous Programming


Synchronous

The process and execute one task at a time.

Cons of Synchronous Programming:

  • Delay of other tasks (e.g. make Network requests)
  • Appearing responsive to the user

Asynchronous

Getting other work done while you wait for a test to finish is the basis of asynchronous programming.

Async code structure ≠ Sync.code structure

Asynchronous code is structured with callbacks (i.e. a function passed to another function as an argument and only runs after the parent function has finished executing).

Leave a Reply

Your email address will not be published. Required fields are marked *