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..dfd9807fb8d6bbae50161ee19db102301f02571b 100644 |
| --- a/sdk/lib/async/deferred_load.dart |
| +++ b/sdk/lib/async/deferred_load.dart |
| @@ -7,23 +7,11 @@ part of dart.async; |
| /** |
| * Indicates that loading of [libraryName] is deferred. |
| * |
| - * Applies to library imports, when used as metadata. |
| + * This class is deprecated. Instead use the syntax: |
| + * import "library.dart" deferred as prefix; |
|
floitsch
2014/09/08 13:28:27
`import "library.dart" deferred as prefix;`
|
| * |
| - * 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(); |
| - * } |
| + * Read more about the new syntax |
| + * [here](https://www.dartlang.org/docs/spec/deferred-loading.html). |
| */ |
| class DeferredLibrary { |
| final String libraryName; |