Abstract

JavaScript is an asynchronous language. Developers can instruct the JavaScript runtime, whether in the browser or on the server, to “schedule” code to be run at a future point in time. This feature is often used to delay the start of a CPU-intensive or long-running operation, giving an application time to finish its current tasks before moving on to more labor-intensive ones. This feature is so powerful that traditionally synchronous languages like Java, C#, PHP, and Ruby have followed suit and adopted it. Some languages, like C#, have implemented the asynchronous execution model as a language feature (via the async and await keywords); other languages, like PHP, support asynchronicity with external libraries like React (not to be confused with FaceBoook’s JavaScript library, React). In either case, asynchronous code and synchronous code are bound to meet.

Keywords

Parallel Flow Sequential Flow Synchronous Language Client Code Pipeline Flow 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Tim Ambler and Nicholas Cloud 2015

Authors and Affiliations

  • Tim Ambler
    • 1
  • Nicholas Cloud
    • 1
  1. 1.TNUS

Personalised recommendations