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

Unified Diff: lib/pool.dart

Issue 1949803002: Fix a new strong-mode error. (Closed) Base URL: git@github.com:dart-lang/pool@master
Patch Set: Created 4 years, 8 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 | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »
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 deb53334b8036eb9bf115fac2a666ae566f2655f..faa9f0e12137669e0c9b42c6c4d06f2cf52fa8c6 100644
--- a/lib/pool.dart
+++ b/lib/pool.dart
@@ -116,8 +116,8 @@ class Pool {
// synchronously in case the pool is closed immediately afterwards. Async
// functions have an asynchronous gap between calling and running the body,
// and [close] could be called during that gap. See #3.
- return request().then((resource) {
- return new Future.sync(callback).whenComplete(resource.release);
+ return request().then/*<Future<T>>*/((resource) {
+ return new Future/*<T>*/.sync(callback).whenComplete(resource.release);
});
}
« no previous file with comments | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698