andersr (17) [Avatar] Offline
#1
It would be great if, at the beginning of ch 10, that you included some use cases for why one would want to add blocking methods to one's application. Without that, I am asking myself why I am reading this chapter.

Additionally, when discussing listing 10.1 you write “The way the blockFor3s function is called requires the server’s full attention until it completes" but you never actually explain specifically how the blocking is created. In other words, is it the while statement in combination with the getTime statement? What exactly is it that stops node from being asynchronous?

In other words, this isn't very useful since it neither expains the purpose of creating blocking methods nor does it specifically explain how a blocking method is created, only providing a general example.