Skip to content

Batch 8: Cancel() + FileTreeEnumerator + resource management#376

Merged
JusterZhu merged 1 commit into
masterfrom
batch-8-blacklist-filetree
May 24, 2026
Merged

Batch 8: Cancel() + FileTreeEnumerator + resource management#376
JusterZhu merged 1 commit into
masterfrom
batch-8-blacklist-filetree

Conversation

@JusterZhu
Copy link
Copy Markdown
Collaborator

Summary

Adds cancellation support and file tree enumeration.

Changes

GeneralUpdateBootstrap

  • Add Cancel() method — cancels the current update operation
  • CancellationTokenSource created in LaunchWithStrategy
  • Token propagated to strategy execution
  • CTS disposed in finally block

FileTreeEnumerator

  • Recursive file enumeration with blacklist filtering
  • Uses IBlackListMatcher for file/directory skipping
  • Static FromConfig() factory method

Build

  • dotnet build src/c#/GeneralUpdate.slnx — 0 errors

Closes #375

- Add Cancel() to GeneralUpdateBootstrap with CancellationTokenSource
- Wire CancellationToken through LaunchWithStrategy with finally cleanup
- Create FileTreeEnumerator: recursive file enumeration with
  blacklist filtering via IBlackListMatcher

Closes #375
Copilot AI review requested due to automatic review settings May 24, 2026 10:41
@JusterZhu JusterZhu merged commit a49d77f into master May 24, 2026
1 check failed
@JusterZhu JusterZhu deleted the batch-8-blacklist-filetree branch May 24, 2026 10:42
@JusterZhu JusterZhu review requested due to automatic review settings May 24, 2026 11:04
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.

Batch 8: Blacklist + FileTree + resource management

1 participant