OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 "dart:async"; | 5 import "dart:async"; |
6 import "package:expect/expect.dart"; | 6 import "package:expect/expect.dart"; |
7 import "package:async_helper/async_helper.dart"; | 7 import "package:async_helper/async_helper.dart"; |
8 | 8 |
9 var events = []; | 9 var events = []; |
10 | 10 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 asyncEnd(); | 50 asyncEnd(); |
51 }); | 51 }); |
52 | 52 |
53 events.add("invoke cancel"); | 53 events.add("invoke cancel"); |
54 await subscription.cancel(); | 54 await subscription.cancel(); |
55 // This line should never be reached, since the cancel-future doesn't | 55 // This line should never be reached, since the cancel-future doesn't |
56 // complete. | 56 // complete. |
57 cancelFinished = true; | 57 cancelFinished = true; |
58 }); | 58 }); |
59 } | 59 } |
OLD | NEW |