Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove synchronous API #100

Merged
merged 2 commits into from
Aug 8, 2022
Merged

chore: remove synchronous API #100

merged 2 commits into from
Aug 8, 2022

Conversation

malandis
Copy link
Contributor

@malandis malandis commented Aug 8, 2022

Remove the synchronous Get, Set, and Dictionary methods. The end user can invoke the async APIs using await for by calling .Result on the Task object. Because the synchronous gRPC calls perform sync-over-async, there is no safety benefit to exposing synchronous methods in our API.

@malandis malandis marked this pull request as ready for review August 8, 2022 22:49
Copy link
Contributor

@kvcache kvcache left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool, I think this is better

@malandis malandis merged commit 5ee9eb7 into main Aug 8, 2022
@malandis malandis deleted the chore/remove-sync-data-apis branch August 8, 2022 22:59
@malandis malandis linked an issue Aug 8, 2022 that may be closed by this pull request
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.

Remove synchronous methods from API
3 participants