Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PublicInterface test for CancellationConstraint.Reset #1350

Merged
merged 1 commit into from Nov 8, 2022

Conversation

EnCey
Copy link
Contributor

@EnCey EnCey commented Nov 8, 2022

Adds a PublicInterface test that fetches a CancellationConstraint with the FindConstraint<> method and calls its overloaded Reset() method in order to pass in a new CancellationToken.


Update README

The example usage of CancellationConstraint demonstrated in the README doesn't work anymore because the constructor was made internal.

A dummy CancellationToken must be provided when creating the constraint if one intends to pass the actual one via Reset(). default doesn't work though, as the constraint won't be created then.

see #1345

The example usage of CancellationConstraint demonstrated in the README
doesn't work anymore because the constructor was made internal.

A dummy CancellationToken must be provided when creating the constraint
if one intends to pass the actual one via Reset().
`default` doesn't work though, as the constraint won't be created then.

sebastienros#1345
Copy link
Collaborator

@lahma lahma left a comment

Choose a reason for hiding this comment

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

Looks good, thank you!

@lahma lahma merged commit 826bf4f into sebastienros:main Nov 8, 2022
@EnCey EnCey deleted the constraint-usage-test branch November 8, 2022 12:49
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.

None yet

2 participants