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

Unified Diff: packages/analyzer/lib/src/cancelable_future.dart

Issue 2990843002: Removed fixed dependencies (Closed)
Patch Set: Created 3 years, 5 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/analyzer/lib/source/sdk_ext.dart ('k') | packages/analyzer/lib/src/codegen/html.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/analyzer/lib/src/cancelable_future.dart
diff --git a/packages/analyzer/lib/src/cancelable_future.dart b/packages/analyzer/lib/src/cancelable_future.dart
index 733cac55f9984e44680f5ab143087d4a75c08dce..43eb00c10c299b3d0fac32a535653a02758df55d 100644
--- a/packages/analyzer/lib/src/cancelable_future.dart
+++ b/packages/analyzer/lib/src/cancelable_future.dart
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-library cancelable_future;
+library analyzer.src.cancelable_future;
import 'dart:async';
@@ -248,15 +248,15 @@ class _CancelableCompleterFuture<T> implements CancelableFuture<T> {
}
@override
- Future catchError(Function onError, {bool test(Object error)}) =>
+ Future<T> catchError(Function onError, {bool test(Object error)}) =>
_completer._outerCompleter.future.catchError(onError, test: test);
@override
- Future then(onValue(T value), {Function onError}) =>
+ Future/*<S>*/ then/*<S>*/(onValue(T value), {Function onError}) =>
_completer._outerCompleter.future.then(onValue, onError: onError);
@override
- Future timeout(Duration timeLimit, {onTimeout()}) {
+ Future<T> timeout(Duration timeLimit, {onTimeout()}) {
// TODO(paulberry): Implement this in such a way that a timeout cancels
// the future.
return _completer._outerCompleter.future
@@ -284,15 +284,15 @@ class _WrappedFuture<T> implements CancelableFuture<T> {
void cancel() {}
@override
- Future catchError(Function onError, {bool test(Object error)}) =>
+ Future<T> catchError(Function onError, {bool test(Object error)}) =>
_future.catchError(onError, test: test);
@override
- Future then(onValue(value), {Function onError}) =>
+ Future/*<S>*/ then/*<S>*/(onValue(T value), {Function onError}) =>
_future.then(onValue, onError: onError);
@override
- Future timeout(Duration timeLimit, {onTimeout()}) =>
+ Future<T> timeout(Duration timeLimit, {onTimeout()}) =>
_future.timeout(timeLimit, onTimeout: onTimeout);
@override
« no previous file with comments | « packages/analyzer/lib/source/sdk_ext.dart ('k') | packages/analyzer/lib/src/codegen/html.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698