Skip to content

Conversation

deanmarcussen
Copy link
Collaborator

Introduces a cancellation token property on the async methods.

It flows this cancellation token to the underlying library, rather than trying to manage it, itself.

So CancelAsync behaviour remains the same.

Will add some tests tomorrow, just wanted to see how whether the current tests pass.

I added the Meziantou.Analyzer package, as it has a useful anaylzer as to whether all the cancellation tokens have been passed to all the methods that support them. Had to fix a few other things it suggested, and ignore a bunch of other warnings.

@@ -1,5 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<PackageReference Include="Meziantou.Analyzer" />
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could probably have been a <GlobalPackageReference Include="Meziantou.Analyzer" Version="2.0.177" /> so it's applied everywhere automatically

@MikeAlhayek
Copy link
Collaborator

Is there a reason why this has not been merged?

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.

4 participants