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

Clarify StreamQueue.next will fail just after hasNext in API document. #355

Open
Cat-sushi opened this issue Oct 17, 2022 · 0 comments
Open

Comments

@Cat-sushi
Copy link

The API document of hasNext says,

Can be used before using next to avoid getting an error in the future returned by next in the case where there are no more events.

but, with using await q.hasNext, we can't avoid error from await q.next when q is shared by asynchronous functions.

See dart-lang/sdk#50217 in detail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants