Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Change the type on _onBatch to avoid relying on fuzzy arrows #39

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 0.9.8+1

* Change the type on a local function (_onBatch) to reflect the fact that its
caller does not statically guarantee its contract.

# 0.9.8

* Improve support for symlinks. Where possible, symlinks are now treated as
Expand Down
3 changes: 2 additions & 1 deletion lib/src/directory_watcher/linux.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ class _LinuxDirectoryWatcher
}

/// The callback that's run when a batch of changes comes in.
void _onBatch(List<FileSystemEvent> batch) {
void _onBatch(Object data) {
var batch = data as List<FileSystemEvent>;
var changes = <String, Entity>{};

// inotify event batches are ordered by occurrence, so we treat them as a
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: watcher
version: 0.9.7+2
version: 0.9.8+1
author: Dart Team <[email protected]>
homepage: https://github.com/dart-lang/watcher
description: >
Expand Down