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( | 34 .then((_) => Future.wait([ |
35 (_) => Future.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, | 41 .catchError(cannotGetConveyorBeltRunning)) |
42 onTimeout: _handleBakingFailures) | |
43 .catchError(cannotGetConveyorBeltRunning)) | |
44 .catchError(cannotGetConveyorBeltRunning) | 42 .catchError(cannotGetConveyorBeltRunning) |
45 .then((_) { | 43 .then((_) { |
46 _logger.info("Let's eat!"); | 44 _logger.info("Let's eat!"); |
47 }); | 45 }); |
48 >>> (indent 22) | 46 >>> (indent 22) |
49 someVeryLongFutureWithManyChars().then((foo) { | 47 someVeryLongFutureWithManyChars().then((foo) { |
50 doAThing(); | 48 doAThing(); |
51 }).catchError((e) { | 49 }).catchError((e) { |
52 doAnotherThing; | 50 doAnotherThing; |
53 }, test: someTestWithSoManyConditions(e) && itHasToWrap(e)
); | 51 }, test: someTestWithSoManyConditions(e) && itHasToWrap(e)
); |
54 <<< | 52 <<< |
55 someVeryLongFutureWithManyChars().then((foo) { | 53 someVeryLongFutureWithManyChars().then((foo) { |
56 doAThing(); | 54 doAThing(); |
57 }).catchError((e) { | 55 }).catchError((e) { |
58 doAnotherThing; | 56 doAnotherThing; |
59 }, | 57 }, |
60 test: someTestWithSoManyConditions(e) && | 58 test: someTestWithSoManyConditions(e) && |
61 itHasToWrap(e)); | 59 itHasToWrap(e)); |
OLD | NEW |