def subscriber_client(): subscriber_client = SubscriberClient() yield subscriber_client subscriber_client.close()
def subscriber_client() -> Generator[pubsub_v1.SubscriberClient, None, None]: subscriber_client = SubscriberClient() yield subscriber_client subscriber_client.close()