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

Unified Diff: dart/sdk/lib/async/deferred_load.dart

Issue 550173007: Version 1.6.1 (Closed) Base URL: http://dart.googlecode.com/svn/branches/1.6/
Patch Set: Created 6 years, 3 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 | « dart/sdk/lib/_blink/dartium/_blink_dartium.dart ('k') | dart/sdk/lib/core/uri.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/sdk/lib/async/deferred_load.dart
===================================================================
--- dart/sdk/lib/async/deferred_load.dart (revision 40021)
+++ dart/sdk/lib/async/deferred_load.dart (working copy)
@@ -7,23 +7,11 @@
/**
* 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;
« no previous file with comments | « dart/sdk/lib/_blink/dartium/_blink_dartium.dart ('k') | dart/sdk/lib/core/uri.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698