async
async copied to clipboard
Clarify `StreamQueue.next` will fail just after `hasNext` in API document.
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.