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

Unified Diff: lib/src/json_document_transformer.dart

Issue 2041983003: Add StreamChannel.withCloseGuarantee. (Closed) Base URL: git@github.com:dart-lang/stream_channel.git@master
Patch Set: Code review changes Created 4 years, 6 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 | « lib/src/close_guarantee_channel.dart ('k') | lib/src/stream_channel_transformer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/json_document_transformer.dart
diff --git a/lib/src/json_document_transformer.dart b/lib/src/json_document_transformer.dart
index c62c597cb549c8c4b48746faf5116b94edd76b12..86b9ae71c34b966f7f56424d810a0277790288a3 100644
--- a/lib/src/json_document_transformer.dart
+++ b/lib/src/json_document_transformer.dart
@@ -40,6 +40,6 @@ class JsonDocumentTransformer
var sink = new StreamSinkTransformer.fromHandlers(handleData: (data, sink) {
sink.add(_codec.encode(data));
}).bind(channel.sink);
- return new StreamChannel(stream, sink);
+ return new StreamChannel.withCloseGuarantee(stream, sink);
}
}
« no previous file with comments | « lib/src/close_guarantee_channel.dart ('k') | lib/src/stream_channel_transformer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698