The Joys of Affordable Concurrency
rounds.com
rounds.com
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.
That's essentially what async/await is doing in C# (and hopefully eventually in C++).
For example the code in the original post could be in C# as:
var facebookTestUser1 = CreateFacebookTestUser();
var facebookTestUser2 = CreateFacebookTestUser();
MakeFriends(facebookTestUser1, facebookTestUser2);
And asynchronously: var facebookTestUser1 = CreateFacebookTestUser();
var facebookTestUser2 = CreateFacebookTestUser();
MakeFriends(await facebookTestUser1, await facebookTestUser2);
Of course, the code inside CreateFacebookTestUser is going to have to change ;)I expect most widely languages allow for libraries to make this easier, if it isn't integral to the language.