Wait for the results of multiple callbacks