mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 21:10:22 +00:00
025bfc858e
Previously there was a window between the decision to resume generator and actually running the micro-task. The stream could be canceled during that window, making running the generator incorrect. The solution is to check if the stream was canceled right before resuming the generator in yield/yield*. This change also unifies yield and yield* to check if the stream was canceled even before suspending the generator. TEST=language/async_star/cancel_while_paused_test, language/async_star/cancel_while_paused_at_yield_test Fixes https://github.com/dart-lang/sdk/issues/49451 Change-Id: Ib8ff3a2da9a6a7da8766a7dbf28e2c9d618728f9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/251562 Commit-Queue: Alexander Markov <alexmarkov@google.com> Reviewed-by: Martin Kustermann <kustermann@google.com> |
||
---|---|---|
.. | ||
co19 | ||
co19_2 | ||
corelib | ||
corelib_2 | ||
dartdevc | ||
dartdevc_2 | ||
ffi | ||
ffi_2 | ||
language | ||
language_2 | ||
lib | ||
lib_2 | ||
modular | ||
standalone | ||
standalone_2 | ||
web | ||
web_2 | ||
legacy_status_dart2js.csv | ||
OWNERS | ||
README.md |
This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/wiki/Testing.