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

Add Additional Synchronous Polling APIs #31495

Conversation

alzimmermsft
Copy link
Member

Description

Adds additional synchronous polling APIs

  • Additional factory method on SyncPoller.
  • Synchonrous APIs to compliment the asynchronous APIs on PollingStrategy

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

@alzimmermsft alzimmermsft added Client This issue points to a problem in the data-plane of the library. Azure.Core azure-core labels Oct 14, 2022
@alzimmermsft alzimmermsft self-assigned this Oct 14, 2022
@azure-sdk
Copy link
Collaborator

API change check

APIView has identified API level changes in this PR and created following API reviews.

azure-core

@alzimmermsft alzimmermsft marked this pull request as ready for review October 31, 2022 17:46
Copy link
Member

@lmolkova lmolkova left a comment

Choose a reason for hiding this comment

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

LGTM

@g2vinay
Copy link
Member

g2vinay commented Nov 1, 2022

tagging @srnagar for review from Autorest side.

* response body should be kept. This should match the generic parameter {@link U}.
* @return a poll response containing the status and the response content
*/
default PollResponse<T> onInitialResponseSync(Response<?> response, PollingContext<T> pollingContext,
Copy link
Member

Choose a reason for hiding this comment

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

All these default sync APIs on this interface indicate that we could create a SyncPollingStrategy but not sure how that will impact existing implementations if we do that.

Copy link
Member Author

Choose a reason for hiding this comment

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

This PR shows, a subset of, what this would look like: #31495

@alzimmermsft
Copy link
Member Author

Closed for #31923

@alzimmermsft alzimmermsft deleted the AzCore_AddSynchronousPollingStrategy branch November 3, 2022 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure.Core azure-core Client This issue points to a problem in the data-plane of the library.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants