| Index: pkg/barback/lib/src/utils.dart
|
| diff --git a/pkg/barback/lib/src/utils.dart b/pkg/barback/lib/src/utils.dart
|
| index 96bd5542d7cf8f7eac3121311ad6100fba2deb3f..22203b4c89dc52a9580f600e9cb636cbc46a98f0 100644
|
| --- a/pkg/barback/lib/src/utils.dart
|
| +++ b/pkg/barback/lib/src/utils.dart
|
| @@ -168,10 +168,10 @@ String prefixLines(String text, {String prefix: '| ', String firstPrefix}) {
|
| /// any code to run, as long as it's not waiting on some external event.
|
| Future pumpEventQueue([int times=20]) {
|
| if (times == 0) return new Future.value();
|
| - // We use a delayed future to allow runAsync events to finish. The
|
| - // Future.value or Future() constructors use runAsync themselves and would
|
| - // therefore not wait for runAsync callbacks that are scheduled after invoking
|
| - // this method.
|
| + // We use a delayed future to allow microtask events to finish. The
|
| + // Future.value or Future() constructors use scheduleMicrotask themselves and
|
| + // would therefore not wait for microtask callbacks that are scheduled after
|
| + // invoking this method.
|
| return new Future.delayed(Duration.ZERO, () => pumpEventQueue(times - 1));
|
| }
|
|
|
|
|