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

Unified Diff: pkg/barback/lib/src/file_pool.dart

Issue 101523003: Add chain support to barback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 7 years 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 | « pkg/barback/lib/src/errors.dart ('k') | pkg/barback/lib/src/internal_asset.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/barback/lib/src/file_pool.dart
diff --git a/pkg/barback/lib/src/file_pool.dart b/pkg/barback/lib/src/file_pool.dart
index 31d32ed04582b9e9b8cc5acb23cb19477c9ea555..dab94091ab6f071fac3d21f3c685680b0fc3dcb9 100644
--- a/pkg/barback/lib/src/file_pool.dart
+++ b/pkg/barback/lib/src/file_pool.dart
@@ -8,6 +8,8 @@ import 'dart:async';
import 'dart:convert';
import 'dart:io';
+import 'package:stack_trace/stack_trace.dart';
+
import 'pool.dart';
import 'utils.dart';
@@ -33,7 +35,7 @@ class FilePool {
/// try again.
Stream<List<int>> openRead(String path) {
return futureStream(_pool.request().then((resource) {
- return new File(path).openRead().transform(
+ return Chain.track(new File(path).openRead()).transform(
Siggi Cherem (dart-lang) 2013/12/09 18:58:34 I just noticed that this breaks polymer build: thi
new StreamTransformer.fromHandlers(handleDone: (sink) {
sink.close();
resource.release();
« no previous file with comments | « pkg/barback/lib/src/errors.dart ('k') | pkg/barback/lib/src/internal_asset.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698