OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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.utils; | 5 library watcher.utils; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:io'; | 8 import 'dart:io'; |
9 import 'dart:collection'; | 9 import 'dart:collection'; |
10 | 10 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 }); | 108 }); |
109 }, handleDone: (sink) { | 109 }, handleDone: (sink) { |
110 if (batch.isNotEmpty) { | 110 if (batch.isNotEmpty) { |
111 sink.add(batch.toList()); | 111 sink.add(batch.toList()); |
112 batch.clear(); | 112 batch.clear(); |
113 } | 113 } |
114 sink.close(); | 114 sink.close(); |
115 }).bind(input); | 115 }).bind(input); |
116 } | 116 } |
117 } | 117 } |
OLD | NEW |