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 a doc comment for PollUntilDone() freq arg #719

Merged
merged 3 commits into from
Oct 26, 2021

Conversation

jhendrixMSFT
Copy link
Member

No description provided.

@jhendrixMSFT jhendrixMSFT requested a review from chlowell October 25, 2021 23:57
@jhendrixMSFT
Copy link
Member Author

Fixes Azure/azure-sdk-for-go#14683

@@ -91,7 +91,7 @@ function generateUnmarshallerForResultEnvelope(structDef: StructDef) {
structDef.Methods.push({ name: 'UnmarshalJSON', desc: `UnmarshalJSON implements the json.Unmarshaller interface for type ${structDef.Language.name}.`, text: unmarshaller });
}

function generatePollUntilDoneForResponse(structDef: StructDef) {
function generatePollUntilDoneForResponse(structDef: StructDef, isAzure: boolean) {
Copy link
Member

Choose a reason for hiding this comment

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

I may be missing some context. Naively, this seems more to the point:

Suggested change
function generatePollUntilDoneForResponse(structDef: StructDef, isAzure: boolean) {
function generatePollUntilDoneForResponse(structDef: StructDef, isARM: boolean) {

Copy link
Member Author

Choose a reason for hiding this comment

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

So there are three pivots on the type, data-plane, arm and azure-arm. arm is the default if you don't specify anything, which is different from azure-arm which is specified in the config file and lights up additional Azure ARM-specific things. This param is to indicate the azure-arm bucket, I did rename it a bit though for clarity.

@jhendrixMSFT jhendrixMSFT merged commit 131ed2e into Azure:track2 Oct 26, 2021
@jhendrixMSFT jhendrixMSFT deleted the track2_poller_comment branch October 26, 2021 15:27
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