Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(526)

Unified Diff: runtime/lib/async_patch.dart

Issue 2297013003: Fix problem occurring when an async* stream is paused at the end of a yield*. (Closed)
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/language/yieldstar_pause_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/async_patch.dart
diff --git a/runtime/lib/async_patch.dart b/runtime/lib/async_patch.dart
index c048ce8196b4a62cda6a907c495a3920d469d8fa..3e22fb044545fef55933c31361b6ea48c946e976 100644
--- a/runtime/lib/async_patch.dart
+++ b/runtime/lib/async_patch.dart
@@ -124,6 +124,7 @@ class _AsyncStarStreamController {
whenDoneAdding.then((_) {
isAdding = false;
scheduleGenerator();
+ if (!isScheduled) isSuspendedAtYield = true;
});
return false;
}
« no previous file with comments | « no previous file | tests/language/yieldstar_pause_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698