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

Unified Diff: packages/barback/lib/src/utils/file_pool.dart

Issue 3015713002: Roll to pickup pool changes
Patch Set: Created 3 years, 3 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 | « packages/barback/lib/src/utils/cancelable_future.dart ('k') | packages/barback/lib/src/utils/multiset.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/barback/lib/src/utils/file_pool.dart
diff --git a/packages/barback/lib/src/utils/file_pool.dart b/packages/barback/lib/src/utils/file_pool.dart
index c7f3d3931908a019f31850a7a947660c0465f405..e322d6598c1929888be5267f731ad051cab3e04c 100644
--- a/packages/barback/lib/src/utils/file_pool.dart
+++ b/packages/barback/lib/src/utils/file_pool.dart
@@ -34,8 +34,9 @@ class FilePool {
/// try again.
Stream<List<int>> openRead(String path) {
return futureStream(_pool.request().then((resource) {
- return new File(path).openRead().transform(
- new StreamTransformer.fromHandlers(handleDone: (sink) {
+ return new File(path)
+ .openRead()
+ .transform(new StreamTransformer.fromHandlers(handleDone: (sink) {
sink.close();
resource.release();
}));
« no previous file with comments | « packages/barback/lib/src/utils/cancelable_future.dart ('k') | packages/barback/lib/src/utils/multiset.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698