Skip to content

Commit

Permalink
addendum
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Mar 3, 2024
1 parent d5c898d commit 4a729c6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/blog/posts/toolong-retrospective.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@ You register a file with a `Selector` object, then call `select()` which returns

See [watcher.py](https://github.com/Textualize/toolong/blob/main/src/toolong/watcher.py) in Toolong, which runs a thread to monitors files for changes with a selector.

!!! warning "Addendum"

So it turns out that watching regular files for changes with selectors only works with `KqueueSelector` which is the default on macOS.
Disappointingly, the Python docs aren't clear on this.
Toolong will use a polling approach where this selector is unavailable.

## Textual learnings

This project was a chance for me to "dogfood" Textual.
Expand Down

0 comments on commit 4a729c6

Please sign in to comment.