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

Bryanv/10661 async with samples #10744

Merged
merged 2 commits into from
Apr 9, 2020
Merged

Bryanv/10661 async with samples #10744

merged 2 commits into from
Apr 9, 2020

Conversation

bryevdv
Copy link
Contributor

@bryevdv bryevdv commented Apr 8, 2020

fixes #10661

This PR switches to use async with where reasonable (i.e. not in the cases that re-use a client across multiple places). Also the client name was renamed to service_client to match the search_client usage in the P1 examples.

@bryevdv bryevdv requested review from lmazuel and xiangyan99 April 8, 2020 22:38
@bryevdv bryevdv requested a review from mayurid as a code owner April 8, 2020 22:38
@bryevdv bryevdv merged commit c01fbb0 into Azure:master Apr 9, 2020
@bryevdv bryevdv deleted the bryanv/10661_async_with_samples branch April 9, 2020 17:11
iscai-msft pushed a commit to iscai-msft/azure-sdk-for-python that referenced this pull request Apr 13, 2020
* use async with for search samples

* consistent client naming
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.

Revisit async code & samples in Search to use context manager
2 participants