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); |