| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 library watcher.file_watcher.native; | 5 library watcher.file_watcher.native; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:io'; | 8 import 'dart:io'; |
| 9 | 9 |
| 10 import '../file_watcher.dart'; | 10 import '../file_watcher.dart'; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 close(); | 78 close(); |
| 79 } | 79 } |
| 80 } | 80 } |
| 81 | 81 |
| 82 void close() { | 82 void close() { |
| 83 if (_subscription != null) _subscription.cancel(); | 83 if (_subscription != null) _subscription.cancel(); |
| 84 _subscription = null; | 84 _subscription = null; |
| 85 _eventsController.close(); | 85 _eventsController.close(); |
| 86 } | 86 } |
| 87 } | 87 } |
| OLD | NEW |