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

Unified Diff: sdk/lib/io/secure_socket.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/io/secure_socket.dart
diff --git a/sdk/lib/io/secure_socket.dart b/sdk/lib/io/secure_socket.dart
index 4ed4da43e013afa5406be0d8fd28dc19d8439ec4..fcfffbda48d1e77552c53c02502b5d57e79be02c 100644
--- a/sdk/lib/io/secure_socket.dart
+++ b/sdk/lib/io/secure_socket.dart
@@ -423,7 +423,7 @@ class _RawSecureSocket extends Stream<RawSocketEvent>
bool this.requireClientCertificate,
bool this.sendClientCertificate,
bool this.onBadCertificate(X509Certificate certificate)) {
- _controller = new StreamController<RawSocketEvent>(
+ _controller = new StreamController<RawSocketEvent>(sync: true,
floitsch 2013/05/30 12:13:48 next line.
Lasse Reichstein Nielsen 2013/05/31 05:51:59 Done.
onListen: _onSubscriptionStateChange,
onPause: _onPauseStateChange,
onResume: _onPauseStateChange,

Powered by Google App Engine
This is Rietveld 408576698