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