Allows waiting for multiple callbacks from asynchronous operations.