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

Unified Diff: packages/barback/lib/src/graph/transform_node.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 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
Index: packages/barback/lib/src/graph/transform_node.dart
diff --git a/packages/barback/lib/src/graph/transform_node.dart b/packages/barback/lib/src/graph/transform_node.dart
index 2a24335b612077348302493624974e477670bdfb..39f5c52884b7a8e633ae411980affb666a481bb4 100644
--- a/packages/barback/lib/src/graph/transform_node.dart
+++ b/packages/barback/lib/src/graph/transform_node.dart
@@ -6,6 +6,8 @@ library barback.graph.transform_node;
import 'dart:async';
+import 'package:async/async.dart';
+
import '../asset/asset.dart';
import '../asset/asset_id.dart';
import '../asset/asset_node.dart';
@@ -443,7 +445,7 @@ class TransformNode {
}
_maybeFinishDeclareController();
- syncFuture(() {
+ new Future.sync(() {
return (transformer as DeclaringAggregateTransformer)
.declareOutputs(controller.transform);
}).whenComplete(() {
@@ -643,7 +645,7 @@ class TransformNode {
var transformCounterTimer;
- return syncFuture(() {
+ return DelegatingFuture.typed(new Future.sync(() {
_timeInTransformer.reset();
_timeAwaitingInputs.reset();
_timeInTransformer.start();
@@ -725,7 +727,7 @@ class TransformNode {
// is so a broken transformer doesn't take down the whole graph.
phase.cascade.reportError(_wrapException(error, stackTrace));
return true;
- });
+ }));
}
/// Handle the results of running [Transformer.apply].
« no previous file with comments | « packages/barback/lib/src/graph/static_asset_cascade.dart ('k') | packages/barback/lib/src/graph/transformer_classifier.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698