OLD | NEW |
(Empty) | |
| 1 >>> (indent 4) |
| 2 return doughnutFryer.start() |
| 3 .then((_) => _frostingGlazer.start()) |
| 4 .then((_) => |
| 5 Future.wait([ |
| 6 _conveyorBelts.start(), |
| 7 sprinkleSprinkler.start(), |
| 8 sauceDripper.start()])) |
| 9 .catchError(cannotGetConveyorBeltRunning) |
| 10 .then((_) => tellEveryoneDonutsAreJustAboutDone()) |
| 11 .then((_) => |
| 12 Future.wait([ |
| 13 croissantFactory.start(), |
| 14 _giantBakingOvens.start(), |
| 15 butterbutterer.start()]) |
| 16 .catchError(_handleBakingFailures) |
| 17 .timeout(scriptLoadingTimeout, onTimeout: _handleBakingFailures) |
| 18 .catchError(cannotGetConveyorBeltRunning)) |
| 19 .catchError(cannotGetConveyorBeltRunning) |
| 20 .then((_) { |
| 21 _logger.info("Let's eat!"); |
| 22 }); |
| 23 <<< |
| 24 return doughnutFryer |
| 25 .start() |
| 26 .then((_) => _frostingGlazer.start()) |
| 27 .then((_) => Future.wait([ |
| 28 _conveyorBelts.start(), |
| 29 sprinkleSprinkler.start(), |
| 30 sauceDripper.start() |
| 31 ])) |
| 32 .catchError(cannotGetConveyorBeltRunning) |
| 33 .then((_) => tellEveryoneDonutsAreJustAboutDone()) |
| 34 .then((_) => Future.wait([ |
| 35 croissantFactory.start(), |
| 36 _giantBakingOvens.start(), |
| 37 butterbutterer.start() |
| 38 ]) |
| 39 .catchError(_handleBakingFailures) |
| 40 .timeout(scriptLoadingTimeout, onTimeout: _handleBakingFailures) |
| 41 .catchError(cannotGetConveyorBeltRunning)) |
| 42 .catchError(cannotGetConveyorBeltRunning) |
| 43 .then((_) { |
| 44 _logger.info("Let's eat!"); |
| 45 }); |
| 46 >>> (indent 22) |
| 47 someVeryLongFutureWithManyChars().then((foo) { |
| 48 doAThing(); |
| 49 }).catchError((e) { |
| 50 doAnotherThing; |
| 51 }, test: someTestWithSoManyConditions(e) && itHasToWrap(e)
); |
| 52 <<< |
| 53 someVeryLongFutureWithManyChars().then((foo) { |
| 54 doAThing(); |
| 55 }).catchError((e) { |
| 56 doAnotherThing; |
| 57 }, |
| 58 test: someTestWithSoManyConditions(e) && |
| 59 itHasToWrap(e)); |
OLD | NEW |