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

Unified Diff: lib/pool.dart

Issue 1215053004: pkg/pool: remove usage of Chain.track (Closed) Base URL: https://github.com/dart-lang/pool.git@master
Patch Set: Created 5 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 | « no previous file | pubspec.yaml » ('j') | pubspec.yaml » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/pool.dart
diff --git a/lib/pool.dart b/lib/pool.dart
index 6941229b3e084d18f2d2096ed0630569b688f9bb..e8ee99cab190783c9f0b9e97a89720c165fa5637 100644
--- a/lib/pool.dart
+++ b/lib/pool.dart
@@ -87,8 +87,7 @@ class Pool {
///
/// The return value of [callback] is piped to the returned Future.
Future withResource(callback()) {
- return request().then((resource) =>
- Chain.track(new Future.sync(callback)).whenComplete(resource.release));
+ return request().then((resource) => new Future.sync(callback).whenComplete(resource.release));
nweiz 2015/07/01 00:44:34 Long line.
}
/// If there are any pending requests, this will fire the oldest one.
« no previous file with comments | « no previous file | pubspec.yaml » ('j') | pubspec.yaml » ('J')

Powered by Google App Engine
This is Rietveld 408576698