| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 import "package:expect/expect.dart"; | 5 import "package:expect/expect.dart"; |
| 6 import "package:async_helper/async_helper.dart"; | 6 import "package:async_helper/async_helper.dart"; |
| 7 | 7 |
| 8 void main() { | 8 void main() { |
| 9 x() async { | 9 x() async { |
| 10 print("Starting!"); | 10 print("Starting!"); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 print("Ending!"); | 47 print("Ending!"); |
| 48 } | 48 } |
| 49 | 49 |
| 50 asyncStart(); | 50 asyncStart(); |
| 51 x().then((_) => asyncEnd()); | 51 x().then((_) => asyncEnd()); |
| 52 } | 52 } |
| 53 | 53 |
| 54 runAsync() async { | 54 runAsync() async { |
| 55 throw 'oh no!'; | 55 throw 'oh no!'; |
| 56 } | 56 } |
| OLD | NEW |