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

Unified Diff: utils/archive/entry.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | « utils/apidoc/mdn/util.dart ('k') | utils/archive/options.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/archive/entry.dart
diff --git a/utils/archive/entry.dart b/utils/archive/entry.dart
index d27bf49128f517bc49f0ecbc7c89a3b2e77d5411..41040c921c2e3afe494d2007beb6026802c797b6 100644
--- a/utils/archive/entry.dart
+++ b/utils/archive/entry.dart
@@ -50,7 +50,7 @@ class ArchiveEntry {
/** Create a new [ArchiveEntry] with default values for all of its fields. */
static Future<ArchiveEntry> create() {
- return call(NEW).transform((properties) {
+ return call(NEW).then((properties) {
return new archive.ArchiveEntry.internal(properties, null);
});
}
@@ -215,7 +215,7 @@ class ArchiveEntry {
stream.onClosed = () => completer.complete(buffer);
return Futures.wait([call(CLONE, _id), completer.future])
- .transform((list) => new CompleteArchiveEntry._(list[0], list[1]));
+ .then((list) => new CompleteArchiveEntry._(list[0], list[1]));
}
/**
@@ -277,7 +277,7 @@ class ArchiveEntry {
// Asynchronously complete to give the InputStream callbacks a chance to
// fire.
return async();
- }).transform((_) => inputCompleter.complete(null));
+ }).then((_) => inputCompleter.complete(null));
future.handleException((e) {
print(e);
« no previous file with comments | « utils/apidoc/mdn/util.dart ('k') | utils/archive/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698