Cancelling Async Generator Hangs Indefinitely #59793
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
triage-automation
See https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot.
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Problem
Given the following stream
If we then wrap this in
Everything works correctly
Prints as expected
If, however, we change watch to be
Cancellation hangs indefinitely.
The specification has the following to say on the topic.
I'm not entirely sure what passivated means, but I think hanging indefinitely is at least not an obvious behaviour if it is intentional.
Platform
I have tested this on Linux (flutter), Android (flutter) and DartPad and the behaviour seems to be consistent
The text was updated successfully, but these errors were encountered: