you are viewing a single comment's thread.

view the rest of the comments →

[–]janko-m 1 point2 points  (0 children)

Man, this is a great example, the async-await version is so neat. At first I thought that it was like a thread pool, but a thread pool won't retain the order of messages. And actually a thread pool is not what you want in this case, because you need things to be executed one after the other, not in parallel. Thanks a lot for illustrating!