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

Remove cancellation token from CloseAsync APIs #16353

Closed
divega opened this issue Jun 28, 2019 · 1 comment
Closed

Remove cancellation token from CloseAsync APIs #16353

divega opened this issue Jun 28, 2019 · 1 comment
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-bug
Milestone

Comments

@divega
Copy link
Contributor

divega commented Jun 28, 2019

This is my conclusion on the conversation started on dotnet/standard#1283 (comment).

All in all, it seems that we are using CloseAsync for cleanup (e.g. in finally blocks) and it is hard to figure why passing the same cancellation token that you are passing to everything else is the wrong thing to do. Hence it is a pit of failure to have CancellationToken in the API.

This should needs to be removed from the System.Data.Common types, but the removal should propagate to EF Core APIs as well.

@roji
Copy link
Member

roji commented Jul 1, 2019

PR for token removal in corefx: dotnet/corefx#39070

@ajcvickers ajcvickers self-assigned this Jul 1, 2019
@ajcvickers ajcvickers added this to the 3.0.0 milestone Jul 1, 2019
@ajcvickers ajcvickers modified the milestones: 3.0.0, 3.0.0-preview7 Jul 2, 2019
ajcvickers added a commit that referenced this issue Jul 2, 2019
@ajcvickers ajcvickers added the closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. label Jul 2, 2019
@ajcvickers ajcvickers modified the milestones: 3.0.0, 3.0.0-preview7 Jul 2, 2019
@dougbu dougbu closed this as completed in 32ff2d1 Jul 2, 2019
@ajcvickers ajcvickers modified the milestones: 3.0.0-preview7, 3.0.0 Nov 11, 2019
@ajcvickers ajcvickers removed their assignment Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-bug
Projects
None yet
Development

No branches or pull requests

3 participants