Skip to content

Commit 9a829cc

Browse files
srawlinscommit-bot@chromium.org
authored andcommitted
Remove 'strong' comments from Future.
Fixes #36458 Change-Id: I4b4f4c0666b6dee166459875881b798c44e7d65c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/122040 Reviewed-by: Lasse R.H. Nielsen <lrn@google.com> Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
1 parent 0c47a85 commit 9a829cc

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

sdk/lib/async/future.dart

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ part of dart.async;
1313
/// It is a compile-time error for any class to extend, mix in or implement
1414
/// `FutureOr`.
1515
///
16-
/// Note: the `FutureOr<T>` type is interpreted as `dynamic` in non strong-mode.
17-
///
1816
/// # Examples
1917
/// ``` dart
2018
/// // The `Future<T>.then` function takes a callback [f] that returns either
@@ -637,8 +635,6 @@ abstract class Future<T> {
637635
// - (dynamic, StackTrace) -> FutureOr<T>
638636
// Given that there is a `test` function that is usually used to do an
639637
// `isCheck` we should also expect functions that take a specific argument.
640-
// Note: making `catchError` return a `Future<T>` in non-strong mode could be
641-
// a breaking change.
642638
Future<T> catchError(Function onError, {bool test(Object error)});
643639

644640
/**

sdk_nnbd/lib/async/future.dart

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ part of dart.async;
1515
/// It is a compile-time error for any class to extend, mix in or implement
1616
/// `FutureOr`.
1717
///
18-
/// Note: the `FutureOr<T>` type is interpreted as `dynamic` in non strong-mode.
19-
///
2018
/// # Examples
2119
/// ``` dart
2220
/// // The `Future<T>.then` function takes a callback [f] that returns either
@@ -639,8 +637,6 @@ abstract class Future<T> {
639637
// - (dynamic, StackTrace) -> FutureOr<T>
640638
// Given that there is a `test` function that is usually used to do an
641639
// `isCheck` we should also expect functions that take a specific argument.
642-
// Note: making `catchError` return a `Future<T>` in non-strong mode could be
643-
// a breaking change.
644640
Future<T> catchError(Function onError, {bool test(Object error)});
645641

646642
/**

0 commit comments

Comments
 (0)