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

Unified Diff: runtime/observatory/lib/service_common.dart

Issue 1315673007: Process service events as microtasks. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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 | runtime/observatory/lib/src/service/object.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/lib/service_common.dart
diff --git a/runtime/observatory/lib/service_common.dart b/runtime/observatory/lib/service_common.dart
index 0faa080bb8cc00abe77b3eca452d9434894e26a1..cde76a2c1fdba8a3278c2cff58e8def1712eff70 100644
--- a/runtime/observatory/lib/service_common.dart
+++ b/runtime/observatory/lib/service_common.dart
@@ -209,7 +209,7 @@ abstract class CommonWebSocketVM extends VM {
}
var event = map['params']['event'];
var streamId = map['params']['streamId'];
- postServiceEvent(streamId, event, data);
+ scheduleMicrotask(() { postServiceEvent(streamId, event, data); });
});
}
@@ -222,7 +222,7 @@ abstract class CommonWebSocketVM extends VM {
if (map['method'] == 'streamNotify') {
var event = map['params']['event'];
var streamId = map['params']['streamId'];
- postServiceEvent(streamId, event, null);
+ scheduleMicrotask(() { postServiceEvent(streamId, event, null); });
return;
}
« no previous file with comments | « no previous file | runtime/observatory/lib/src/service/object.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698