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..42db0eeaefaec207e8fd948a72e0cf13fa7a6079 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;` |
* |
- * 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; |