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

Unified Diff: sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart

Issue 16125005: Make new StreamController be async by default. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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
Index: sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
diff --git a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
index 99346e1cff5be5ea21b8f3e723e02cca488c5b83..ba4acd20a442c215dacfd454880b1895ded55f47 100644
--- a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
+++ b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
@@ -158,7 +158,7 @@ class Cursor native "IDBCursor" {
}
}
-
+
@DomName('IDBCursor.direction')
@DocsEditable
final String direction;
@@ -585,7 +585,7 @@ class Index native "IDBIndex" {
return ObjectStore._cursorStreamFromResult(request, autoAdvance);
}
-
+
@DomName('IDBIndex.keyPath')
@DocsEditable
final dynamic keyPath;
@@ -1016,7 +1016,7 @@ class ObjectStore native "IDBObjectStore" {
// TODO: need to guarantee that the controller provides the values
// immediately as waiting until the next tick will cause the transaction to
// close.
- var controller = new StreamController();
+ var controller = new StreamController(sync: true);
request.onError.listen((e) {
//TODO: Report stacktrace once issue 4061 is resolved.

Powered by Google App Engine
This is Rietveld 408576698