Skip to content

Conversation

davidvonthenen
Copy link
Contributor

@davidvonthenen davidvonthenen commented Dec 7, 2023

Depends on #199

This implements Sync (Default) and Async For All Functions/Classes. I was originally going to deprecate the Async to reduce the amount of code to maintain, but I convinced myself to support both. There is some utility to having the Async functions as they are good for things like:

  • quick development and prototyping
  • demos when speed isn't important

All examples were updated to use the sync functions/classes, and provided a couple of examples for async.

This follows the pattern a lot of other IO/CPU intensive libraries have set where sync/threading is the default and async is an option. Some good examples to reference are libraries that we consume in this SDK. For example:

@davidvonthenen
Copy link
Contributor Author

rebased changes after merging #199

SandraRodgers
SandraRodgers previously approved these changes Dec 7, 2023
@davidvonthenen davidvonthenen merged commit 94e9e7c into deepgram:main Dec 7, 2023
@davidvonthenen davidvonthenen deleted the handle-sync-async-prerecorded branch December 7, 2023 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants