You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Refactor cancellation mechanism and make it internal, accessible via experimental nuget. #2795
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.
From my experience this kind of work is done via CancellationToken and will be more of a framework design change. You will need to pass that cancellation token from the start till the end or at least through all checkpoints where you would like to stop the execution.
changed the title [-]HostEnvironment StopExecution method removal[/-][+]Refactor cancellation mechanism and make it internal, accessible via experimental nuget.[/+]on Mar 19, 2019
Activity
codemzs commentedon Feb 28, 2019
From my experience this kind of work is done via
CancellationTokenand will be more of a framework design change. You will need to pass that cancellation token from the start till the end or at least through all checkpoints where you would like to stop the execution.Ivanidzo4ka commentedon Feb 28, 2019
As I said above, functionality like this deserve proper discussion, and it's not v1 priority.
Let's focus right now on code cleaning.
codemzs commentedon Feb 28, 2019
@Ivanidzo4ka I wasn't suggesting we do the design work of proper cancellation mechanism now. Anyways PR to clean the cancellation mess is out ...
[-]HostEnvironment StopExecution method removal[/-][+]Refactor cancellation mechanism and make it internal, accessible via experimental nuget.[/+]Move corefxlab to arcade (dotnet#2795)
Move DataFrame to machinelearning (#5641)
Merge from main repository (#1)
Actually merge from main (#2)
Update editor config and format samples (#5893)