Skip to Content
Get Programming with JavaScript Next
book

Get Programming with JavaScript Next

by JD Isaacks
May 2018
Intermediate to advanced content levelIntermediate to advanced
376 pages
9h 22m
English
Manning Publications
Content preview from Get Programming with JavaScript Next

Unit 7. Working asynchronously

JavaScript has always been an asynchronous language. That makes it a perfect language for creating rich applications, because it can handle many concurrent tasks without locking the interface. But until recently, there hasn’t been much first-class support for its asynchronous nature other than being able to pass around functions that can be invoked at a later time. That has all changed. JavaScript now has first-class support for promises, asynchronous functions, and soon, for observables.

Promises are objects that represent future values. They are more convenient to pass around than callbacks because, unlike callbacks, they don’t rely on timing. A promise will give a value right away if the value has already been ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Get Programming with JavaScript

Get Programming with JavaScript

John Larsen
Rediscovering JavaScript

Rediscovering JavaScript

Venkat Subramaniam

Publisher Resources

ISBN: 9781617294204Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link