Chromium Code Reviews| Index: sdk/lib/async/deferred_load.dart |
| diff --git a/sdk/lib/async/deferred_load.dart b/sdk/lib/async/deferred_load.dart |
| index a770071c8988d0f89c6a316fbac207a44dbe0a22..40f09246c4cf37953b006df6d45ad3452a4a528e 100644 |
| --- a/sdk/lib/async/deferred_load.dart |
| +++ b/sdk/lib/async/deferred_load.dart |
| @@ -7,24 +7,10 @@ part of dart.async; |
| /** |
| * Indicates that loading of [libraryName] is deferred. |
| * |
| - * Applies to library imports, when used as metadata. |
| - * |
| - * Example usage: |
| - * |
| - * @lazy |
| - * import 'foo.dart' as foo; |
| - * |
| - * const lazy = const DeferredLibrary('com.example.foo'); |
| - * |
| - * void main() { |
| - * foo.method(); // Throws a NoSuchMethodError, foo is not loaded yet. |
| - * lazy.load().then(onFooLoaded); |
| - * } |
| - * |
| - * void onFooLoaded(_) { |
| - * foo.method(); |
| - * } |
| + * This class is obsolete. Instead use the syntax: |
| + * import "library.dart" deferred as prefix; |
| */ |
| +@deprecated |
| class DeferredLibrary { |
|
floitsch
2014/08/28 20:05:20
Any plan on when we want to remove the class?
sigurdm
2014/09/02 11:23:18
I think version 1.8 (after talking to seth)
|
| final String libraryName; |
| final String uri; |