Abstract
JavaScript, as we know it, is single threaded by design. In browsers, it uses event handling to manage a lot of tasks concurrently. The JavaScript Engine manages an event queue and when an event occurs, the registered handler function is called. If you have any experience with traditional JavaScript, then you are already well aware of the fact that understanding asynchronous programming is a must to properly be able to use JavaScript. The main pattern for using asynchrony is through the callback function.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2017 Deepak Grover and Hanu Kunduru
About this chapter
Cite this chapter
Grover, D., Kunduru, H.P. (2017). Promises in ES6. In: ES6 for Humans. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2623-0_9
Download citation
DOI: https://doi.org/10.1007/978-1-4842-2623-0_9
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-2622-3
Online ISBN: 978-1-4842-2623-0
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books