Chapter 4Advanced Async
BANG! The starting gun goes off as two functions shoot down the track. Firing off AJAX requests willy-nilly, the competing functions zip around corner after corner until finally, one reaches the finish line inches before the other. The functions line up in the winner’s circle as the judge pulls out the envelope. Suddenly, pandemonium erupts when the envelope reveals that the functions weren’t supposed to finish in that order! Disaster!
Fortunately, software development isn’t that exciting (I don’t think I could deal with that every day). Still, functions finishing in the wrong order can spell disaster. In this chapter, you learn how clever Rx use can prevent race conditions before they have a chance to happen. The previous ...
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.
Read now
Unlock full access