Comment
Comment by runT1ME
This is what monadic syntax is for. You can do the following for any Future in scala:
which just gets rewritten to
This doesn't just work for futures, it works for any monad. This is super amazingly useful. Also, query syntax for LINQ in C#/F# can support this too.