'Wait until all RPCs passed in are finished.
This mimics UserRPC.wait_all().
Args:
rpcs: A list of UserRPC and MultiRpc objects.'

@classmethod
def wait_all(cls, rpcs):

    apiproxy_stub_map.UserRPC.wait_all(cls.flatten(rpcs))
