-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cancellation tokens and improve null safety
Enhanced `ProcessAsync` in `ContentQueryExecutor.cs` and `PageContentQueryExecutor.cs` to handle `cancellationToken` for better operation cancellation. Added `System.Diagnostics.CodeAnalysis` namespace and `[return: NotNull]` attribute in `PageContentQueryExecutor.cs` to improve nullability annotations. Modified return statement to return an empty list if `results` is null, preventing potential `NullReferenceException`.
- Loading branch information
1 parent
1f23540
commit 04b9d7d
Showing
2 changed files
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters