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

Unified Diff: lib/src/asset/dart/serialize/get_input_transform.dart

Issue 2184303002: Make pub strong-mode clean. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Code review changes Created 4 years, 5 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 | « lib/src/asset/dart/serialize/exception.dart ('k') | lib/src/asset/dart/serialize/transform.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/asset/dart/serialize/get_input_transform.dart
diff --git a/lib/src/asset/dart/serialize/get_input_transform.dart b/lib/src/asset/dart/serialize/get_input_transform.dart
index be22f572d918af1a54767751d713cf7ac89eb9e0..328d72d225f8df2784a622c1d9e061da81c07bdd 100644
--- a/lib/src/asset/dart/serialize/get_input_transform.dart
+++ b/lib/src/asset/dart/serialize/get_input_transform.dart
@@ -5,10 +5,9 @@
import 'dart:async';
import 'dart:convert';
+import 'package:async/async.dart';
import 'package:barback/barback.dart';
-import '../utils.dart';
-
/// A mixin for transforms that support [getInput] and the associated suite of
/// methods.
abstract class GetInputTransform {
@@ -21,7 +20,7 @@ abstract class GetInputTransform {
}
Stream<List<int>> readInput(AssetId id) =>
- futureStream(getInput(id).then((input) => input.read()));
+ StreamCompleter.fromFuture(getInput(id).then((input) => input.read()));
Future<bool> hasInput(AssetId id) {
return getInput(id).then((_) => true).catchError((error) {
« no previous file with comments | « lib/src/asset/dart/serialize/exception.dart ('k') | lib/src/asset/dart/serialize/transform.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698