A simple utility for dealing with parallel async code