I like the pattern in the example a lot. We recently started doing something just like this in a Rails app at work that has to make quite a few API calls per request. In the right circumstances it makes a big difference in response time. Our approach was basically just this: https://gist.github.com/kevinmcconnell/8365521
I could definitely see how using a language that makes these sorts of operations simpler could lead to finding more cases where it's worth it.