deepgram / deepgram-python-sdk

Official Python SDK for Deepgram's automated speech recognition APIs.
https://developers.deepgram.com
MIT License
175 stars 47 forks source link

Wait for Tasks in `_emit` Before Moving On #409

Closed dvonthenen closed 1 week ago

dvonthenen commented 3 weeks ago

Proposed changes

Add an option to wait for all tasks to complete before moving on. The recommendation is to ALWAYS take the event and use each on_ callback function to add the event to your own queue.

This work is meant to be done in this issue https://github.com/deepgram/deepgram-python-sdk/issues/264, but this issue will explicitly help with the thread management.

Context

Possible Implementation

Other information

dvonthenen commented 1 week ago

This is available in the latest release: https://github.com/deepgram/deepgram-python-sdk/releases/tag/v3.3.0