-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add Additional Synchronous Polling APIs #31495
Conversation
API change check APIView has identified API level changes in this PR and created following API reviews. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
Closed for #31923 |
Description
Adds additional synchronous polling APIs
SyncPoller
.PollingStrategy
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines