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

Side by Side Diff: packages/barback/test/transformer/mock_aggregate.dart

Issue 3015713002: Roll to pickup pool changes
Patch Set: Created 3 years, 2 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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 library barback.test.transformer.mock_aggregate; 5 library barback.test.transformer.mock_aggregate;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:barback/barback.dart'; 9 import 'package:barback/barback.dart';
10 import 'package:barback/src/utils.dart'; 10 import 'package:barback/src/utils.dart';
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 final _getInput = new Map<AssetId, Completer>(); 44 final _getInput = new Map<AssetId, Completer>();
45 45
46 /// Completer for pausing the transformer before it accesses 46 /// Completer for pausing the transformer before it accesses
47 /// [getPrimaryInputs]. 47 /// [getPrimaryInputs].
48 Completer _primaryInputs; 48 Completer _primaryInputs;
49 49
50 /// A completer that completes once this transformer begins running. 50 /// A completer that completes once this transformer begins running.
51 /// 51 ///
52 /// Once this transformer finishes running, this is reset to a new completer, 52 /// Once this transformer finishes running, this is reset to a new completer,
53 /// so it can be used multiple times. 53 /// so it can be used multiple times.
54 var _started = new Completer(); 54 var _started = new Completer<Null>();
55 55
56 /// `true` if any transforms are currently running. 56 /// `true` if any transforms are currently running.
57 /// 57 ///
58 /// This is scheduled. The Future will complete at the point in the schedule 58 /// This is scheduled. The Future will complete at the point in the schedule
59 /// that this is called. 59 /// that this is called.
60 Future<bool> get isRunning => schedule(() => _runningTransforms > 0); 60 Future<bool> get isRunning => schedule(() => _runningTransforms > 0);
61 61
62 /// All elements of this set will be automatically consumed during [apply]. 62 /// All elements of this set will be automatically consumed during [apply].
63 final consumePrimaries = new Set<String>(); 63 final consumePrimaries = new Set<String>();
64 64
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 /// This may return a `Future<String>` or, if it's entirely synchronous, a 194 /// This may return a `Future<String>` or, if it's entirely synchronous, a
195 /// `String`. 195 /// `String`.
196 doClassifyPrimary(AssetId id); 196 doClassifyPrimary(AssetId id);
197 197
198 /// The wrapped version of [doApply] for subclasses to override. 198 /// The wrapped version of [doApply] for subclasses to override.
199 /// 199 ///
200 /// If this does asynchronous work, it should return a [Future] that completes 200 /// If this does asynchronous work, it should return a [Future] that completes
201 /// once it's finished. 201 /// once it's finished.
202 doApply(AggregateTransform transform); 202 doApply(AggregateTransform transform);
203 } 203 }
OLDNEW
« no previous file with comments | « packages/barback/test/transformer/mock.dart ('k') | packages/barback/test/transformer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698