Skip to content

Refactor cancellation mechanism and make it internal, accessible via experimental nuget. #2795

Closed

Description

Some time ago I added StopExecution method and IsCancelled flag to IHost.

It was quick solution to make certain algorithms react to stop signal from user. I doubt in long run it's proper way to do it. And it probably required lengthy discussion how to expose stopping functionality (method, or CancellationToken, or something else).

But for now I think it's a good idea to remove method and flag from our public API. Especially considering what no code actually checking IsCancelled flag.

EDIT: We decided to keep this functionality but make it internal and still be accessible via experimental nuget.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

APIIssues pertaining the friendly API

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions