Skip to content

Default value for CancellationToken in IQueryBatch.GetResultAsync #2571

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

Merged
merged 2 commits into from
Sep 28, 2020

Conversation

lofcz
Copy link
Contributor

@lofcz lofcz commented Sep 28, 2020

I'd like to propose default value of second parameter in function IQueryBatch.GetResultAsync to be default(CancellationToken). This would be consistent with the rest of async functions SingleOrDefaultAsync, ListAsync and RowCountAsync, where in each and every case this is the default value for cancellation.

To my best knowledge this should be nonbreaking change. Due to triviality I don't think any tests are required here.

@hazzik
Copy link
Member

hazzik commented Sep 28, 2020

These files are auto-generated. This would need to be done with AsyncGenerator.yml

@lofcz
Copy link
Contributor Author

lofcz commented Sep 28, 2020

Thanks @hazzik

@hazzik hazzik merged commit 179056e into nhibernate:master Sep 28, 2020
@hazzik hazzik added r: Fixed and removed c: Core labels Sep 28, 2020
@fredericDelaporte fredericDelaporte changed the title Default value for CancellationToken in IQueryBatch.GetResultAsync Default value for CancellationToken in IQueryBatch.GetResultAsync Nov 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants