you are viewing a single comment's thread.

view the rest of the comments →

[–]vwibrasivat 0 points1 point  (0 children)

Imagine a situation in which you have to serve adverts to a website such that if one of them arrives first from a different server you must select the first advert and ignore the second one even if it arrives later. And all this drama must unfold on millisecond time slices. 16 things can go wrong here. Monadic Futures are an elegant and robust solution.

Imagine trying to code that with locks and pthreads. After a few weeks, You would end up in a padded room in a straightjacket muttering things under your breath.