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

[MetricsAdvisor, sample] introduce local const for listing iterators #11867

Closed
jeremymeng opened this issue Oct 15, 2020 · 0 comments
Closed
Labels
Client This issue points to a problem in the data-plane of the library. Cognitive - Metrics Advisor

Comments

@jeremymeng
Copy link
Member

Use the following form instead of inlining method call inside for-await-of statement

const iterator = client.listAnomaliesForDetectionConfiguration();
for await (const anomaly of iterator)
@jeremymeng jeremymeng added Client This issue points to a problem in the data-plane of the library. Cognitive - Metrics Advisor labels Oct 15, 2020
@jeremymeng jeremymeng added this to the [2020] November milestone Oct 15, 2020
openapi-sdkautomation bot pushed a commit to AzureSDKAutomation/azure-sdk-for-js that referenced this issue Dec 2, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. Cognitive - Metrics Advisor
Projects
None yet
Development

No branches or pull requests

1 participant