Skip to content

Commit

Permalink
Added note to explicitly ignore the cancellation token for invocations.
Browse files Browse the repository at this point in the history
  • Loading branch information
camrein committed Apr 16, 2021
1 parent 023a8aa commit 65e06cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/analyzers/PH_B007.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Multiple succeeding operations on the same concurrent collection are prone to ra

## Solution

Re-design the combination of multiple operations to a single operation with a suitable method of the concurrent collection.
Re-design the combination of multiple operations to a single operation with a suitable method of the concurrent collection. If the invoked must not be canceled (e.g., for logging a failure), pass `CancellationToken.None` instead to explicitly state the intention.

0 comments on commit 65e06cb

Please sign in to comment.