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

Side by Side Diff: dart/sdk/lib/core/load_async.dart

Issue 12033003: Deferred (aka lazy) loading of static functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * Indicates that loading of [libraryName] is deferred. 6 * Indicates that loading of [libraryName] is deferred.
7 * 7 *
8 * Applies to library imports. 8 * Applies to library imports.
9 * 9 *
10 * Example usage: 10 * Example usage:
(...skipping 23 matching lines...) Expand all
34 * Indicates that an element is not called until [libraryName] has 34 * Indicates that an element is not called until [libraryName] has
35 * been loaded. 35 * been loaded.
36 * 36 *
37 * Applies to library declarations, classes, and functions. 37 * Applies to library declarations, classes, and functions.
38 */ 38 */
39 class OnLibraryLoaded { 39 class OnLibraryLoaded {
40 final String libraryName; 40 final String libraryName;
41 41
42 const OnLibraryLoaded(this.libraryName); 42 const OnLibraryLoaded(this.libraryName);
43 } 43 }
44
45 /**
46 * Ensure that [libraryName] has been loaded.
47 *
48 * The returned future if this invocation of [load] caused the library
49 * to be loaded.
50 */
51 external Future<bool> load(String libraryName, {String uri});
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698