We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
[Symbol.asyncIterator]
[Symbol.iterator]
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
TypeScript Version: 4.2.0-dev.20201219
Search Terms:
Symbol.iterator Symbol.asyncIterator
Symbol.iterator
Symbol.asyncIterator
Code
export class Polling { private async *[Symbol.asyncIterator]() {} private *[Symbol.iterator]() {} async loop() { for await (const updates of this) { void updates } } syncLoop() { for (const updates of this) { void updates } } }
Expected behavior: No errors.
Actual behavior:
'[Symbol.asyncIterator]' is declared but its value is never read. '[Symbol.iterator]' is declared but its value is never read.
Playground Link
The text was updated successfully, but these errors were encountered:
mark [Symbol.asyncIterator] and [Symbol.iterator] methods as used…
f50a5d2
… in iterations fix microsoft#42051
Successfully merging a pull request may close this issue.
TypeScript Version: 4.2.0-dev.20201219
Search Terms:
Symbol.iterator
Symbol.asyncIterator
Code
Expected behavior:
No errors.
Actual behavior:
Playground Link
The text was updated successfully, but these errors were encountered: