Skip to content

Replace watch_filesystem() with FileSystemWatcher class#93

Merged
EdmondDantes merged 1 commit intomainfrom
91-add-watch-filesystem-function
Feb 19, 2026
Merged

Replace watch_filesystem() with FileSystemWatcher class#93
EdmondDantes merged 1 commit intomainfrom
91-add-watch-filesystem-function

Conversation

@EdmondDantes
Copy link
Copy Markdown
Contributor

  • Add Async\FileSystemWatcher with foreach iteration, suspend/resume
  • Two storage modes: coalesce (HashTable dedup) and raw (circular buffer)
  • ZEND_ASYNC_EVENT_REF_FIELDS pattern for Awaitable interface
  • Abstract UV constants: ZEND_ASYNC_FS_EVENT_RENAME/CHANGE/RECURSIVE
  • Remove one-shot Async\watch_filesystem() function and tests
  • Add 9 tests covering basic, close, coalesce, raw, rename, scope cancel

- Add Async\FileSystemWatcher with foreach iteration, suspend/resume
- Two storage modes: coalesce (HashTable dedup) and raw (circular buffer)
- ZEND_ASYNC_EVENT_REF_FIELDS pattern for Awaitable interface
- Abstract UV constants: ZEND_ASYNC_FS_EVENT_RENAME/CHANGE/RECURSIVE
- Remove one-shot Async\watch_filesystem() function and tests
- Add 9 tests covering basic, close, coalesce, raw, rename, scope cancel
@EdmondDantes EdmondDantes merged commit dd3637e into main Feb 19, 2026
1 check passed
@EdmondDantes EdmondDantes deleted the 91-add-watch-filesystem-function branch February 19, 2026 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant